From 356d3e76899f6b4539e29ffd43aefe366a241c66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BF=85=E8=86=80?= Date: Sat, 17 Oct 2026 09:14:37 +0800 Subject: [PATCH] style(console): pin theme and language controls to the right Separate utility controls from page actions so narrow screens retain a readable title column and right-aligned actions below. Wrap long headings without letting them push controls out of view. --- app/components/ConsolePage.vue | 57 +++++++++++++++++++++++++--------- 1 file changed, 43 insertions(+), 14 deletions(-) diff --git a/app/components/ConsolePage.vue b/app/components/ConsolePage.vue index 3efd412..38e1d9c 100644 --- a/app/components/ConsolePage.vue +++ b/app/components/ConsolePage.vue @@ -27,11 +27,11 @@
-
+

WebHooker / {{ activeNav }}

-

{{ pageTitle }}

+

{{ pageTitle }}

-
+
{{ t("status.loading") }} - {{ t("metrics.refresh") }} {{ t("app.langToggle") }}{{ t("app.langToggle") }} +
+
+ {{ t("metrics.refresh") }} { display: flex; min-height: 76px; align-items: center; - justify-content: space-between; - gap: 1rem; + gap: 0.45rem; border-bottom: 1px solid rgb(var(--wh-border)); background: color-mix(in srgb, rgb(var(--wh-bg)) 87%, transparent); padding: 0.8rem clamp(1rem, 3vw, 2.5rem); backdrop-filter: blur(18px); } +.console-heading { + flex: 1 1 auto; + min-width: 0; + padding-right: 0.55rem; +} .console-topbar h1 { + display: -webkit-box; + overflow: hidden; + -webkit-box-orient: vertical; + -webkit-line-clamp: 2; margin: 0.1rem 0 0; font-size: 1.15rem; letter-spacing: -0.035em; + overflow-wrap: anywhere; } .console-kicker { margin: 0; } +.console-heading .console-kicker { + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; +} +.console-utilities, .console-actions { display: flex; align-items: center; @@ -994,17 +1011,29 @@ async function onDeleteGroup(group: Group): Promise { } } @media (max-width: 620px) { + /* Title left with theme/language pinned top-right; page actions below, right-aligned. */ .console-topbar { - align-items: flex-start; - flex-direction: column; + display: grid; + grid-template-columns: minmax(0, 1fr) auto; + align-items: start; + gap: 0.75rem 0.25rem; + } + .console-heading { + padding-right: 0; + } + .console-utilities { + gap: 0.25rem; } .console-actions { - width: 100%; - justify-content: flex-start; + grid-column: 1 / -1; + justify-self: end; + max-width: 100%; overflow-x: auto; padding-bottom: 0.05rem; } - .console-status { + /* Keep the top-right tools compact so the title column stays readable. */ + .console-status, + .console-lang-icon { display: none; } .console-content {