web: unify page headers into one shared page-header bar
Nightly Build / build (push) Successful in 7m17s

Every full-page view now renders the same sticky top bar (back button,
title, right-side actions) from the new web/css/page-header.css,
replacing a dozen per-page duplicates (.page-panel-header,
.project-page-header, .task-page-header, .llm-page-header, .um-header,
.apr-header, .llmr-header, .pv-header, .sa-header, .config-page-header,
.agents-page-header). Pages that padded the whole container (config,
agents, system-agents, llm-requests, models-hub) move that padding into
a body wrapper so the bar sits flush and stays pinned on scroll.
Back buttons are standardized to the icon-only .page-header-back.
This commit is contained in:
2026-07-29 12:36:24 +01:00
parent da8a835d70
commit 0ed94225b2
45 changed files with 389 additions and 492 deletions
+11 -9
View File
@@ -342,10 +342,12 @@ export class UsersPage extends LightElement {
return html`
<div class="um-page">
<div class="um-header">
<h2 class="um-title"><i class="bi bi-people-fill me-2"></i>${t('users.title')}</h2>
<div class="um-header-right">
<span class="um-header-count">${t(users.length === 1 ? 'users.count_one' : 'users.count_other', { n: users.length })}</span>
<div class="page-header">
<div class="page-header-left">
<h2 class="page-header-title"><i class="bi bi-people-fill me-2"></i>${t('users.title')}</h2>
</div>
<div class="page-header-actions">
<span class="page-header-count">${t(users.length === 1 ? 'users.count_one' : 'users.count_other', { n: users.length })}</span>
<button class="btn btn-sm btn-primary" @click=${() => this._openCreate()}>
<i class="bi bi-plus-lg me-1"></i>${t('users.btn.new')}
</button>
@@ -433,9 +435,9 @@ export class UsersPage extends LightElement {
_renderDetailHeader(u) {
return html`
<div class="um-header">
<div class="d-flex align-items-center gap-2" style="min-width:0">
<button class="btn btn-sm btn-outline-secondary" title=${t('users.detail.back')} @click=${() => this._back()}>
<div class="page-header">
<div class="page-header-left">
<button class="btn btn-sm btn-outline-secondary page-header-back" title=${t('users.detail.back')} @click=${() => this._back()}>
<i class="bi bi-arrow-left"></i>
</button>
${u ? html`
@@ -443,7 +445,7 @@ export class UsersPage extends LightElement {
${(u.display_name || u.username).charAt(0).toUpperCase()}
</span>
<div style="min-width:0">
<h2 class="um-title" style="min-width:0;overflow:hidden;text-overflow:ellipsis">
<h2 class="page-header-title" style="min-width:0;overflow:hidden;text-overflow:ellipsis">
${u.display_name || u.username}</h2>
<div class="d-flex align-items-center gap-2" style="font-size:.72rem">
<code class="text-muted">${u.username}</code>
@@ -452,7 +454,7 @@ export class UsersPage extends LightElement {
${u.active ? nothing : html`<span class="um-badge um-badge-inactive">${t('users.badge.inactive')}</span>`}
</div>
</div>`
: html`<h2 class="um-title">${t('users.title')}</h2>`}
: html`<h2 class="page-header-title">${t('users.title')}</h2>`}
</div>
</div>`;
}