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 <noreply@anthropic.com>
This commit is contained in:
ekko
2026-04-15 08:50:10 +08:00
parent 66cc9a6f1e
commit 29f19ddb30
11 changed files with 65 additions and 149 deletions
+2 -17
View File
@@ -30,9 +30,9 @@ async function handleSaved() {
<template>
<div class="models-view">
<header class="models-header">
<header class="page-header">
<h2 class="header-title">{{ t('models.title') }}</h2>
<NButton type="primary" @click="openCreateModal">
<NButton type="primary" size="small" @click="openCreateModal">
<template #icon>
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><line x1="12" y1="5" x2="12" y2="19"/><line x1="5" y1="12" x2="19" y2="12"/></svg>
</template>
@@ -63,21 +63,6 @@ async function handleSaved() {
flex-direction: column;
}
.models-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 12px 20px;
border-bottom: 1px solid $border-color;
flex-shrink: 0;
}
.header-title {
font-size: 16px;
font-weight: 600;
color: $text-primary;
}
.models-content {
flex: 1;
overflow-y: auto;