From a72d2c07cfca03b55371089de6aa230d8c951fa0 Mon Sep 17 00:00:00 2001 From: xtex Date: Wed, 18 Feb 2026 18:58:16 +0100 Subject: [PATCH] feat(ui): enable text auto-spacing (#11340) See #11020 Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/11340 Reviewed-by: Gusted Reviewed-by: 0ko <0ko@noreply.codeberg.org> Co-authored-by: xtex Co-committed-by: xtex --- web_src/css/base.css | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/web_src/css/base.css b/web_src/css/base.css index a2837cf4f6..d023699a9d 100644 --- a/web_src/css/base.css +++ b/web_src/css/base.css @@ -76,6 +76,8 @@ body { flex-direction: column; overflow-x: visible; overflow-wrap: break-word; + text-autospace: normal; + text-spacing-trim: normal; } textarea { @@ -89,6 +91,16 @@ samp { font-family: var(--fonts-monospace); } +pre, +code, +kbd, +samp, +tt { + text-spacing: none; + text-autospace: initial; + text-spacing-trim: initial; +} + pre, code, kbd,