From 29f19ddb304304d5f4ce304fe4b1cfa9201a5f1c Mon Sep 17 00:00:00 2001 From: ekko Date: Wed, 15 Apr 2026 08:50:10 +0800 Subject: [PATCH] fix: unify page header styles across all views - Extract shared .page-header and .header-title to global.scss - Standardize padding to 21px 20px matching sidebar logo height - Fix Usage page layout to flex column with standard header - Fix Logs page header CSS selector after class rename - Normalize button sizes to small across all headers Co-Authored-By: Claude Opus 4.6 --- src/components/chat/ChatPanel.vue | 6 ++-- src/styles/global.scss | 16 +++++++++ src/styles/variables.scss | 2 +- src/views/ChannelsView.vue | 16 +-------- src/views/JobsView.vue | 19 ++--------- src/views/LogsView.vue | 29 +++++----------- src/views/MemoryView.vue | 17 +--------- src/views/ModelsView.vue | 19 ++--------- src/views/SettingsView.vue | 16 +-------- src/views/SkillsView.vue | 19 +---------- src/views/UsageView.vue | 55 ++++++++++++++++--------------- 11 files changed, 65 insertions(+), 149 deletions(-) diff --git a/src/components/chat/ChatPanel.vue b/src/components/chat/ChatPanel.vue index 66c908c..04a12e0 100644 --- a/src/components/chat/ChatPanel.vue +++ b/src/components/chat/ChatPanel.vue @@ -556,7 +556,7 @@ async function handleRenameConfirm() { display: flex; align-items: center; justify-content: space-between; - padding: 12px 16px; + padding: 21px 20px; border-bottom: 1px solid $border-color; flex-shrink: 0; } @@ -571,8 +571,8 @@ async function handleRenameConfirm() { } .header-session-title { - font-size: 14px; - font-weight: 500; + font-size: 16px; + font-weight: 600; color: $text-primary; white-space: nowrap; overflow: hidden; diff --git a/src/styles/global.scss b/src/styles/global.scss index 42bddee..1ac23d5 100644 --- a/src/styles/global.scss +++ b/src/styles/global.scss @@ -58,3 +58,19 @@ a { ::selection { background: rgba($accent-primary, 0.3); } + +// Shared page header +.page-header { + display: flex; + align-items: center; + justify-content: space-between; + padding: 21px 20px; + border-bottom: 1px solid $border-color; + flex-shrink: 0; +} + +.header-title { + font-size: 16px; + font-weight: 600; + color: $text-primary; +} diff --git a/src/styles/variables.scss b/src/styles/variables.scss index 81d3b39..36865ee 100644 --- a/src/styles/variables.scss +++ b/src/styles/variables.scss @@ -44,7 +44,7 @@ $font-code: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace; // Layout $sidebar-width: 240px; $sidebar-collapsed-width: 64px; -$header-height: 56px; +$header-height: 60px; // Radius $radius-sm: 6px; diff --git a/src/views/ChannelsView.vue b/src/views/ChannelsView.vue index ae52510..a0816f5 100644 --- a/src/views/ChannelsView.vue +++ b/src/views/ChannelsView.vue @@ -15,7 +15,7 @@ onMounted(() => {