From a45cdda3aa6ef3c1d8d70434a4b4160003ce01d6 Mon Sep 17 00:00:00 2001 From: TaskPool Date: Sat, 8 Aug 2026 16:07:58 +0800 Subject: [PATCH] style(select): make dropdown menu more compact to match sm-size trigger MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Menu padding: 8px → 6px - Menu gap: 6px → 4px - Item min-height: var(--ui-height-sm) → calc(var(--ui-height-sm) - 4px) - Item padding: 0.5rem 0.75rem → 0.375rem 0.5rem --- web/src/index.css | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/web/src/index.css b/web/src/index.css index d1c8f5f..61d8f89 100644 --- a/web/src/index.css +++ b/web/src/index.css @@ -394,14 +394,14 @@ pre, .ui-select-menu { display: flex; flex-direction: column; - gap: 6px; + gap: 4px; max-height: 280px; overflow: auto; border-radius: var(--radius-md); border: 1px solid var(--border); background: var(--bg-secondary); box-shadow: var(--shadow-md); - padding: 8px; + padding: 6px; } .ui-select-item { @@ -416,8 +416,8 @@ pre, cursor: pointer; font-size: var(--ui-font-sm); line-height: 1.35; - min-height: var(--ui-height-sm); - padding: 0.5rem 0.75rem; + min-height: calc(var(--ui-height-sm) - 4px); + padding: 0.375rem 0.5rem; text-align: left; }