From a1eda75bec6e8ca85f3ef8e363d254cf5980ba84 Mon Sep 17 00:00:00 2001 From: RAIT-09 <51452399+RAIT-09@users.noreply.github.com> Date: Tue, 21 Oct 2025 00:55:54 +0900 Subject: [PATCH] Make textarea, hint, and auto-mention use Obsidian font size --- styles.css | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/styles.css b/styles.css index bc51776..f43c3a8 100644 --- a/styles.css +++ b/styles.css @@ -428,9 +428,9 @@ If your plugin does not need CSS, delete this file. background-color: transparent; color: var(--interactive-accent-hover); border-radius: 3px; - font-size: inherit; + font-size: var(--font-text-size); font-weight: 500; - line-height: inherit; + line-height: var(--line-height-normal); cursor: default; user-select: none; white-space: nowrap; @@ -494,8 +494,8 @@ If your plugin does not need CSS, delete this file. resize: none; min-height: 80px; font-family: inherit; - font-size: inherit; - line-height: inherit; + font-size: var(--font-text-size); + line-height: var(--line-height-normal); box-sizing: border-box; outline: none; overflow-y: auto; @@ -504,8 +504,10 @@ If your plugin does not need CSS, delete this file. } .chat-input-textarea.has-auto-mention { - padding-top: 36px; - min-height: 116px; + padding-top: calc(var(--font-text-size) * var(--line-height-normal) + 16px); + min-height: calc( + 80px + var(--font-text-size) * var(--line-height-normal) + 16px + ); } .chat-input-textarea::-webkit-scrollbar { @@ -548,8 +550,8 @@ If your plugin does not need CSS, delete this file. border-radius: 8px; box-sizing: border-box; font-family: inherit; - font-size: inherit; - line-height: inherit; + font-size: var(--font-text-size); + line-height: var(--line-height-normal); /* Text wrapping */ white-space: pre-wrap; word-wrap: break-word; @@ -558,7 +560,7 @@ If your plugin does not need CSS, delete this file. /* Adjust hint overlay padding when auto-mention is shown */ .chat-input-textarea.has-auto-mention ~ .hint-overlay { - padding-top: 36px; + padding-top: calc(var(--font-text-size) * var(--line-height-normal) + 16px); } .hint-overlay .invisible {