From 0e9350d637c59f64a1b4badff84603f393e3a44d Mon Sep 17 00:00:00 2001 From: Andy Smith Date: Wed, 10 Dec 2025 14:12:34 -0600 Subject: [PATCH] Revert "Fix Lexxy prompt list padding by lowering rich-text specificity" This reverts commit 31fec69822426bcd133fa4cebcd4dc681be06199. --- app/assets/stylesheets/lexxy.css | 9 +++++++-- app/assets/stylesheets/rich-text-content.css | 2 +- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/app/assets/stylesheets/lexxy.css b/app/assets/stylesheets/lexxy.css index 17201dbbe..f89028f02 100644 --- a/app/assets/stylesheets/lexxy.css +++ b/app/assets/stylesheets/lexxy.css @@ -288,12 +288,17 @@ 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 1918b04c6..c9877f4bf 100644 --- a/app/assets/stylesheets/rich-text-content.css +++ b/app/assets/stylesheets/rich-text-content.css @@ -1,5 +1,5 @@ @layer components { - :where(.rich-text-content) { + .rich-text-content { --block-margin: 0.5lh; :where(h1, h2, h3, h4, h5, h6) {