From 95c72340fe4e543cb7e3c2edeab8c79b30d1df8e Mon Sep 17 00:00:00 2001 From: Christoph Brandau Date: Wed, 9 Sep 2026 09:24:18 +0200 Subject: [PATCH] feat(ui): add consistent page-header layout and styles Introduce a shared page-header/page-heading pattern and CSS to standardize headers across top-level sections. Components were updated to adopt the new classes and slightly smaller icon sizing for a more compact, consistent header appearance. This improves visual consistency and makes future header adjustments simpler. - Add reusable page-header styles for spacing, borders, and bg - Standardize icon sizing and heading layout across screens --- src/app.css | 33 +++++++++++++++++++ src/lib/components/IssueCenter.svelte | 4 +-- src/lib/components/RepositoryDashboard.svelte | 4 +-- src/lib/components/ReviewCenter.svelte | 4 +-- 4 files changed, 39 insertions(+), 6 deletions(-) diff --git a/src/app.css b/src/app.css index 7c991e7..12834af 100644 --- a/src/app.css +++ b/src/app.css @@ -9069,3 +9069,36 @@ input:focus, textarea:focus, select:focus { box-shadow: 0 0 0 3px color-mix(in s --color-sync-ahead: #9a5200; --color-sync-behind: #0755c8; } + +/* Consistent page headers for repositories, pull requests, and issues. */ +section > header.page-header.page-header { + box-sizing: border-box; + display: flex; + flex-shrink: 0; + min-height: 54px; + height: auto; + align-items: center; + justify-content: space-between; + gap: 16px; + padding: 8px 24px; + border-bottom: 1px solid var(--color-border-subtle); + background: color-mix(in srgb, var(--app-bg) 94%, var(--color-surface)); +} +.page-header .page-heading { + display: flex; + align-items: center; + gap: 10px; + min-width: 0; +} +.page-header .page-heading > svg { + flex: 0 0 auto; + color: var(--color-accent); +} +.page-header.page-header .page-heading h1 { + margin: 0; + color: var(--color-ink); + font-size: 14px; + font-weight: 700; + line-height: 20px; + letter-spacing: normal; +} diff --git a/src/lib/components/IssueCenter.svelte b/src/lib/components/IssueCenter.svelte index 9535f25..e9f2277 100644 --- a/src/lib/components/IssueCenter.svelte +++ b/src/lib/components/IssueCenter.svelte @@ -172,8 +172,8 @@ { if (event.key === "Escape" && selectedId) void closeDetails(); }} />
-
-

Issues

{de ? "Arbeit im Blick. Über alle Integrationen." : "Work in focus. Across your integrations."}

+ {#if !sources.length} diff --git a/src/lib/components/RepositoryDashboard.svelte b/src/lib/components/RepositoryDashboard.svelte index 05057bb..ff23c1b 100644 --- a/src/lib/components/RepositoryDashboard.svelte +++ b/src/lib/components/RepositoryDashboard.svelte @@ -164,8 +164,8 @@
-
-

Repository Management

+