From 31fec69822426bcd133fa4cebcd4dc681be06199 Mon Sep 17 00:00:00 2001 From: Andy Smith Date: Wed, 10 Dec 2025 14:12:14 -0600 Subject: [PATCH] Fix Lexxy prompt list padding by lowering rich-text specificity --- app/assets/stylesheets/lexxy.css | 9 ++------- app/assets/stylesheets/rich-text-content.css | 2 +- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/app/assets/stylesheets/lexxy.css b/app/assets/stylesheets/lexxy.css index f89028f02..17201dbbe 100644 --- a/app/assets/stylesheets/lexxy.css +++ b/app/assets/stylesheets/lexxy.css @@ -288,17 +288,12 @@ font-size: var(--text-small); list-style: none; margin: 0; + max-height: 200px; min-inline-size: var(--lexxy-prompt-min-width); + overflow: auto; padding: var(--lexxy-prompt-padding); visibility: hidden; z-index: var(--z-popup); - - max-height: 200px; - overflow: scroll; - - &:is(.lexxy-prompt-menu--visible) { - padding: var(--lexxy-prompt-padding); - } } .lexxy-prompt-menu--visible { diff --git a/app/assets/stylesheets/rich-text-content.css b/app/assets/stylesheets/rich-text-content.css index c9877f4bf..1918b04c6 100644 --- a/app/assets/stylesheets/rich-text-content.css +++ b/app/assets/stylesheets/rich-text-content.css @@ -1,5 +1,5 @@ @layer components { - .rich-text-content { + :where(.rich-text-content) { --block-margin: 0.5lh; :where(h1, h2, h3, h4, h5, h6) {