« get me outta code hell

css: set line-height on sticky heading h1 - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2025-03-30 06:23:52 -0300
committer(quasar) nebula <qznebula@protonmail.com>2025-03-30 06:23:52 -0300
commit2f15109a3cc41f3bbacd0fd436702efb8a785da4 (patch)
tree133287b5604af6e482f0cec37416c2d66601019b
parentd4e271e4457828bbfcacffc9b889a0a132c65335 (diff)
css: set line-height on sticky heading h1
Apparently manually setting line-height resolves some
instability between a line of text which includes JP
characters and one which does not - it appears that
without a manual line-height, the line height is
computed independently per line. This mostly just
causes an apparent shift when collapsing down to
one line. Avoid it completely.
-rw-r--r--src/static/css/site.css1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/static/css/site.css b/src/static/css/site.css
index b266b208..6aa31c1e 100644
--- a/src/static/css/site.css
+++ b/src/static/css/site.css
@@ -2992,6 +2992,7 @@ main.long-content .content-sticky-heading-container .content-sticky-subheading-r
   position: relative;
   margin: 0;
   padding-right: 20px;
+  line-height: 1.4;
 }
 
 .content-sticky-heading-row h1 .reference-collapsed-heading {