style(dashboard): 将顶部标题栏与操作栏移入主工作区大背景卡片内部
This commit is contained in:
1 parent
b7aac02ada
commit
5cbc0241e6
3 files changed
+28
-24
No files matched your search
@@ -138,7 +138,23 @@ const { activeSection, activeLabel, sections, selectSection } = useDashboardNavi
|
||||
|
||||
<template>
|
||||
<main class="page-shell">
|
||||
<header class="topbar">
|
||||
|
||||
|
||||
<div class="dashboard-messages" aria-live="polite">
|
||||
<p v-if="error" class="error-banner">{{ error }}</p>
|
||||
<p v-if="notice" class="notice-banner">{{ notice }}</p>
|
||||
<p v-if="taskQueryError" class="error-banner" role="alert">{{ taskQueryError }}</p>
|
||||
</div>
|
||||
|
||||
<div class="dashboard-workspace">
|
||||
<div
|
||||
:key="activeSection"
|
||||
class="dashboard-content"
|
||||
role="region"
|
||||
:aria-label="activeLabel"
|
||||
tabindex="0"
|
||||
>
|
||||
<header class="topbar">
|
||||
<div>
|
||||
<p class="eyebrow">SCERT / SSL 证书管理</p>
|
||||
<h1>证书管理总览</h1>
|
||||
@@ -169,21 +185,6 @@ const { activeSection, activeLabel, sections, selectSection } = useDashboardNavi
|
||||
</button>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<div class="dashboard-messages" aria-live="polite">
|
||||
<p v-if="error" class="error-banner">{{ error }}</p>
|
||||
<p v-if="notice" class="notice-banner">{{ notice }}</p>
|
||||
<p v-if="taskQueryError" class="error-banner" role="alert">{{ taskQueryError }}</p>
|
||||
</div>
|
||||
|
||||
<div class="dashboard-workspace">
|
||||
<div
|
||||
:key="activeSection"
|
||||
class="dashboard-content"
|
||||
role="region"
|
||||
:aria-label="activeLabel"
|
||||
tabindex="0"
|
||||
>
|
||||
<div v-if="activeSection === 'overview'" class="overview-section">
|
||||
|
||||
<section class="panel overview-panel">
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
.page-shell {
|
||||
display: grid;
|
||||
grid-template-rows: auto auto minmax(0, 1fr);
|
||||
grid-template-rows: auto minmax(0, 1fr);
|
||||
gap: 16px;
|
||||
width: 100%;
|
||||
max-width: 1600px;
|
||||
@@ -11,6 +11,9 @@
|
||||
|
||||
.topbar {
|
||||
gap: 16px;
|
||||
padding: 24px 24px 16px;
|
||||
border-bottom: 1px solid #f0f4f9;
|
||||
background: #ffffff;
|
||||
}
|
||||
|
||||
.topbar h1 {
|
||||
@@ -36,7 +39,7 @@
|
||||
}
|
||||
|
||||
.page-shell:not(:has(.dashboard-messages > p)) {
|
||||
grid-template-rows: auto minmax(0, 1fr);
|
||||
grid-template-rows: minmax(0, 1fr);
|
||||
}
|
||||
|
||||
.dashboard-messages p {
|
||||
|
||||
Reference in new issue
Block a user