From 7b44059e28cead11f8a1205013e49fbf9d73224b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BF=85=E8=86=80?= Date: Sat, 17 Oct 2026 10:01:48 +0800 Subject: [PATCH] style(logs): prevent filter labels and metadata overflow Keep filter labels on one line and allow long channel, thread and repository identifiers to wrap instead of widening the page. --- app/assets/css/main.css | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/app/assets/css/main.css b/app/assets/css/main.css index 30fd9d6..d4e287f 100644 --- a/app/assets/css/main.css +++ b/app/assets/css/main.css @@ -1275,11 +1275,12 @@ } .log-filters { - @apply flex items-center gap-1.5; + @apply flex min-w-0 items-center gap-1.5; } + /* Never squeezed into a column of single characters on narrow screens. */ .filter-label { - @apply text-[11px] font-bold uppercase tracking-wider text-muted; + @apply shrink-0 whitespace-nowrap text-[11px] font-bold uppercase tracking-wider text-muted; } .filter-select { @@ -1334,6 +1335,11 @@ @apply mr-1 font-semibold tracking-wider text-faint; } + /* Long ids (channel/thread, repo) wrap instead of widening the page. */ + .log-meta span { + @apply min-w-0 [overflow-wrap:anywhere]; + } + .log-meta code { @apply rounded-[5px] bg-surface-2 px-1.5 py-px font-mono text-text; }