发布管理:maintenanceSummary 只看 job.state === 'failed' 就给 held 处置文案; 窗口已 released 的旧作业(libsync-internal-1793399248431728863)因此自相矛盾。 改为仅 held 时给 recoveryError,已释放时给 releasedFailure(如实记录失败,不提供强制成功)。 版本记录:LoadVersionHistorySyncState 把可空的 finished_at 扫进 time.Time; 部署重启触发的同步在"进行中"时该列为 NULL,扫描失败使整页 500 (nginx access log:GET /api/v1/version-history?limit=30 → 500,74 字节错误体)。 改为指针接值再判空。前端同时区分"未配置/加载失败"并显示服务端 code。 RED/GREEN:新增 Go 集成用例(NULL finished_at)、两条前端用例; make verify 16/16 通过(local 档案)。
This commit is contained in:
+447
-123
@@ -56,8 +56,8 @@
|
||||
--side-ink-faint: #5b7789;
|
||||
|
||||
/* 字体 */
|
||||
--font-base: Inter, "Noto Sans SC", "PingFang SC", system-ui, sans-serif;
|
||||
--font-mono: "IBM Plex Mono", "SF Mono", Menlo, Consolas, monospace;
|
||||
--font-base: Inter, 'Noto Sans SC', 'PingFang SC', system-ui, sans-serif;
|
||||
--font-mono: 'IBM Plex Mono', 'SF Mono', Menlo, Consolas, monospace;
|
||||
|
||||
/* 圆角(A 风格:小圆角) */
|
||||
--r-sm: 3px;
|
||||
@@ -69,7 +69,8 @@
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
html, body {
|
||||
html,
|
||||
body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
@@ -101,7 +102,10 @@ button {
|
||||
font-weight: 500;
|
||||
cursor: pointer;
|
||||
box-shadow: none;
|
||||
transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
|
||||
transition:
|
||||
background 120ms ease,
|
||||
border-color 120ms ease,
|
||||
color 120ms ease;
|
||||
}
|
||||
|
||||
button:hover:not(:disabled) {
|
||||
@@ -115,7 +119,7 @@ button:disabled {
|
||||
}
|
||||
|
||||
button.primary,
|
||||
button[type="submit"],
|
||||
button[type='submit'],
|
||||
.primary-link {
|
||||
background: var(--side-bg);
|
||||
border-color: var(--side-bg);
|
||||
@@ -227,7 +231,9 @@ code {
|
||||
font-size: 16px;
|
||||
min-height: 44px;
|
||||
text-align: left;
|
||||
transition: background 120ms ease, color 120ms ease;
|
||||
transition:
|
||||
background 120ms ease,
|
||||
color 120ms ease;
|
||||
}
|
||||
|
||||
.nav-item:hover {
|
||||
@@ -332,8 +338,15 @@ code {
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
.workspace-context-tabs span { display: flex; align-items: center; gap: 4px; }
|
||||
.workspace-context-tabs i { color: var(--ink-faint); font-style: normal; }
|
||||
.workspace-context-tabs span {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
}
|
||||
.workspace-context-tabs i {
|
||||
color: var(--ink-faint);
|
||||
font-style: normal;
|
||||
}
|
||||
.workspace-context-tabs button {
|
||||
max-width: 180px;
|
||||
overflow: hidden;
|
||||
@@ -397,7 +410,9 @@ code {
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
h1, h2, p {
|
||||
h1,
|
||||
h2,
|
||||
p {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
@@ -453,11 +468,21 @@ h1 {
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
|
||||
.tone-blue { border-top: 2px solid var(--c-run); }
|
||||
.tone-cyan { border-top: 2px solid var(--c-cyan); }
|
||||
.tone-amber { border-top: 2px solid var(--c-warn); }
|
||||
.tone-red { border-top: 2px solid var(--c-fail); }
|
||||
.tone-green { border-top: 2px solid var(--c-done); }
|
||||
.tone-blue {
|
||||
border-top: 2px solid var(--c-run);
|
||||
}
|
||||
.tone-cyan {
|
||||
border-top: 2px solid var(--c-cyan);
|
||||
}
|
||||
.tone-amber {
|
||||
border-top: 2px solid var(--c-warn);
|
||||
}
|
||||
.tone-red {
|
||||
border-top: 2px solid var(--c-fail);
|
||||
}
|
||||
.tone-green {
|
||||
border-top: 2px solid var(--c-done);
|
||||
}
|
||||
|
||||
/* ========== Panel(A:细边 + 6px 圆角 + 无阴影) ========== */
|
||||
.panel {
|
||||
@@ -513,7 +538,8 @@ table {
|
||||
font-size: 12.5px;
|
||||
}
|
||||
|
||||
th, td {
|
||||
th,
|
||||
td {
|
||||
padding: 10px 14px;
|
||||
border-bottom: 1px solid var(--border-soft);
|
||||
text-align: left;
|
||||
@@ -534,21 +560,39 @@ tbody tr:hover {
|
||||
}
|
||||
|
||||
/* ========== 来源连接表 ========== */
|
||||
.source-connections-table { table-layout: fixed; }
|
||||
.source-connections-table {
|
||||
table-layout: fixed;
|
||||
}
|
||||
.source-connections-table th,
|
||||
.source-connections-table td {
|
||||
padding: 10px 8px;
|
||||
white-space: normal;
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
.source-connections-table th:nth-child(1) { width: 22%; }
|
||||
.source-connections-table th:nth-child(2) { width: 7%; }
|
||||
.source-connections-table th:nth-child(3) { width: 8%; }
|
||||
.source-connections-table th:nth-child(4) { width: 8%; }
|
||||
.source-connections-table th:nth-child(5) { width: 8%; }
|
||||
.source-connections-table th:nth-child(6) { width: 7%; }
|
||||
.source-connections-table th:nth-child(7) { width: 30%; }
|
||||
.source-connections-table th:nth-child(8) { width: 10%; }
|
||||
.source-connections-table th:nth-child(1) {
|
||||
width: 22%;
|
||||
}
|
||||
.source-connections-table th:nth-child(2) {
|
||||
width: 7%;
|
||||
}
|
||||
.source-connections-table th:nth-child(3) {
|
||||
width: 8%;
|
||||
}
|
||||
.source-connections-table th:nth-child(4) {
|
||||
width: 8%;
|
||||
}
|
||||
.source-connections-table th:nth-child(5) {
|
||||
width: 8%;
|
||||
}
|
||||
.source-connections-table th:nth-child(6) {
|
||||
width: 7%;
|
||||
}
|
||||
.source-connections-table th:nth-child(7) {
|
||||
width: 30%;
|
||||
}
|
||||
.source-connections-table th:nth-child(8) {
|
||||
width: 10%;
|
||||
}
|
||||
|
||||
.source-connection-name,
|
||||
.source-scan-summary {
|
||||
@@ -579,21 +623,37 @@ tbody tr:hover {
|
||||
padding: 14px 16px 16px;
|
||||
}
|
||||
|
||||
.scan-audit-grid > * { min-width: 0; }
|
||||
.scan-audit-grid > * {
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.source-scan-history-table { table-layout: fixed; }
|
||||
.source-scan-history-table {
|
||||
table-layout: fixed;
|
||||
}
|
||||
.source-scan-history-table th,
|
||||
.source-scan-history-table td {
|
||||
padding: 9px 8px;
|
||||
white-space: normal;
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
.source-scan-history-table th:nth-child(1) { width: 25%; }
|
||||
.source-scan-history-table th:nth-child(2) { width: 12%; }
|
||||
.source-scan-history-table th:nth-child(3) { width: 9%; }
|
||||
.source-scan-history-table th:nth-child(4) { width: 27%; }
|
||||
.source-scan-history-table th:nth-child(5) { width: 12%; }
|
||||
.source-scan-history-table th:nth-child(6) { width: 15%; }
|
||||
.source-scan-history-table th:nth-child(1) {
|
||||
width: 25%;
|
||||
}
|
||||
.source-scan-history-table th:nth-child(2) {
|
||||
width: 12%;
|
||||
}
|
||||
.source-scan-history-table th:nth-child(3) {
|
||||
width: 9%;
|
||||
}
|
||||
.source-scan-history-table th:nth-child(4) {
|
||||
width: 27%;
|
||||
}
|
||||
.source-scan-history-table th:nth-child(5) {
|
||||
width: 12%;
|
||||
}
|
||||
.source-scan-history-table th:nth-child(6) {
|
||||
width: 15%;
|
||||
}
|
||||
|
||||
.source-scan-history-table code,
|
||||
.source-scan-history-table time {
|
||||
@@ -640,7 +700,9 @@ tbody tr:hover {
|
||||
}
|
||||
|
||||
/* ========== Release page ========== */
|
||||
.release-page .panel { margin-top: 14px; }
|
||||
.release-page .panel {
|
||||
margin-top: 14px;
|
||||
}
|
||||
|
||||
.module-tabs {
|
||||
display: flex;
|
||||
@@ -685,12 +747,23 @@ tbody tr:hover {
|
||||
grid-template-columns: repeat(4, minmax(0, 1fr));
|
||||
gap: 1px;
|
||||
}
|
||||
.monitor-summary-grid .summary-card { padding: 10px 12px; }
|
||||
.monitor-summary-grid .summary-card span { margin-bottom: 4px; font-size: 11px; }
|
||||
.monitor-summary-grid .summary-card strong { font-size: 20px; }
|
||||
.monitor-summary-grid .summary-card {
|
||||
padding: 10px 12px;
|
||||
}
|
||||
.monitor-summary-grid .summary-card span {
|
||||
margin-bottom: 4px;
|
||||
font-size: 11px;
|
||||
}
|
||||
.monitor-summary-grid .summary-card strong {
|
||||
font-size: 20px;
|
||||
}
|
||||
|
||||
.parsing-monitor-panel { margin-top: 0; }
|
||||
.parsing-monitor-panel .panel-heading { padding: 10px 14px; }
|
||||
.parsing-monitor-panel {
|
||||
margin-top: 0;
|
||||
}
|
||||
.parsing-monitor-panel .panel-heading {
|
||||
padding: 10px 14px;
|
||||
}
|
||||
|
||||
.release-snapshot-callout {
|
||||
display: flex;
|
||||
@@ -705,14 +778,33 @@ tbody tr:hover {
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.release-snapshot-callout > span { font-size: 14px; line-height: 1.25; }
|
||||
.release-snapshot-callout div { display: grid; gap: 2px; }
|
||||
.release-snapshot-callout strong { font-size: 12px; color: var(--ink-strong); }
|
||||
.release-snapshot-callout small { color: var(--ink-mute); font-size: 11px; line-height: 1.4; }
|
||||
.release-snapshot-callout > span {
|
||||
font-size: 14px;
|
||||
line-height: 1.25;
|
||||
}
|
||||
.release-snapshot-callout div {
|
||||
display: grid;
|
||||
gap: 2px;
|
||||
}
|
||||
.release-snapshot-callout strong {
|
||||
font-size: 12px;
|
||||
color: var(--ink-strong);
|
||||
}
|
||||
.release-snapshot-callout small {
|
||||
color: var(--ink-mute);
|
||||
font-size: 11px;
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
.release-page .hero + .module-tabs { margin-top: -4px; }
|
||||
.release-page .summary-grid { margin-top: 14px; }
|
||||
.release-page .summary-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
|
||||
.release-page .hero + .module-tabs {
|
||||
margin-top: -4px;
|
||||
}
|
||||
.release-page .summary-grid {
|
||||
margin-top: 14px;
|
||||
}
|
||||
.release-page .summary-grid {
|
||||
grid-template-columns: repeat(4, minmax(0, 1fr));
|
||||
}
|
||||
|
||||
.release-page button:disabled {
|
||||
border-color: var(--border-base);
|
||||
@@ -1003,14 +1095,18 @@ tbody tr:hover {
|
||||
background: var(--c-done-bg);
|
||||
}
|
||||
|
||||
.batch-requirements .met::before { content: '✓'; }
|
||||
.batch-requirements .met::before {
|
||||
content: '✓';
|
||||
}
|
||||
|
||||
.batch-requirements .unmet {
|
||||
color: var(--c-warn);
|
||||
background: var(--c-warn-bg);
|
||||
}
|
||||
|
||||
.batch-requirements .unmet::before { content: '○'; }
|
||||
.batch-requirements .unmet::before {
|
||||
content: '○';
|
||||
}
|
||||
|
||||
.acceptance-summary > strong,
|
||||
.acceptance-summary > span {
|
||||
@@ -1078,7 +1174,9 @@ tbody tr:hover {
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.button-reason strong { margin-right: 4px; }
|
||||
.button-reason strong {
|
||||
margin-right: 4px;
|
||||
}
|
||||
|
||||
.release-actions,
|
||||
.row-actions {
|
||||
@@ -1122,7 +1220,9 @@ tbody tr:hover {
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.review-table { table-layout: fixed; }
|
||||
.review-table {
|
||||
table-layout: fixed;
|
||||
}
|
||||
.review-table th,
|
||||
.review-table td {
|
||||
padding: 8px 8px;
|
||||
@@ -1130,13 +1230,27 @@ tbody tr:hover {
|
||||
overflow-wrap: anywhere;
|
||||
vertical-align: top;
|
||||
}
|
||||
.review-table th:nth-child(1) { width: 5%; }
|
||||
.review-table th:nth-child(2) { width: 20%; }
|
||||
.review-table th:nth-child(3) { width: 19%; }
|
||||
.review-table th:nth-child(4) { width: 10%; }
|
||||
.review-table th:nth-child(5) { width: 13%; }
|
||||
.review-table th:nth-child(6) { width: 13%; }
|
||||
.review-table th:nth-child(7) { width: 20%; }
|
||||
.review-table th:nth-child(1) {
|
||||
width: 5%;
|
||||
}
|
||||
.review-table th:nth-child(2) {
|
||||
width: 20%;
|
||||
}
|
||||
.review-table th:nth-child(3) {
|
||||
width: 19%;
|
||||
}
|
||||
.review-table th:nth-child(4) {
|
||||
width: 10%;
|
||||
}
|
||||
.review-table th:nth-child(5) {
|
||||
width: 13%;
|
||||
}
|
||||
.review-table th:nth-child(6) {
|
||||
width: 13%;
|
||||
}
|
||||
.review-table th:nth-child(7) {
|
||||
width: 20%;
|
||||
}
|
||||
|
||||
.review-table td > strong,
|
||||
.review-table td > code,
|
||||
@@ -1166,7 +1280,9 @@ tbody tr:hover {
|
||||
padding: 12px 16px;
|
||||
}
|
||||
|
||||
.batch-create-bar label { margin-right: auto; }
|
||||
.batch-create-bar label {
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
.batch-grid {
|
||||
display: grid;
|
||||
@@ -1175,7 +1291,9 @@ tbody tr:hover {
|
||||
padding: 12px 16px 16px;
|
||||
}
|
||||
|
||||
.batch-grid > * { min-width: 0; }
|
||||
.batch-grid > * {
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.batch-grid th,
|
||||
.batch-grid td {
|
||||
@@ -1235,13 +1353,41 @@ tbody tr:hover {
|
||||
letter-spacing: 0.02em;
|
||||
}
|
||||
|
||||
.status-pending { color: var(--ink-mute); background: var(--bg-softer); border-color: var(--border-base); }
|
||||
.status-running { color: var(--c-cyan); background: var(--c-cyan-bg); border-color: #b5e5ee; }
|
||||
.status-retry { color: var(--c-warn); background: var(--c-warn-bg); border-color: var(--c-warn-border); }
|
||||
.status-completed { color: var(--c-done); background: var(--c-done-bg); border-color: var(--c-done-border); }
|
||||
.status-failed { color: var(--c-fail); background: var(--c-fail-bg); border-color: var(--c-fail-border); }
|
||||
.status-over_limit { color: var(--c-warn); background: var(--c-warn-bg); border-color: var(--c-warn-border); }
|
||||
.status-content_alias { color: var(--c-cyan); background: var(--c-cyan-bg); border-color: #b5e5ee; }
|
||||
.status-pending {
|
||||
color: var(--ink-mute);
|
||||
background: var(--bg-softer);
|
||||
border-color: var(--border-base);
|
||||
}
|
||||
.status-running {
|
||||
color: var(--c-cyan);
|
||||
background: var(--c-cyan-bg);
|
||||
border-color: #b5e5ee;
|
||||
}
|
||||
.status-retry {
|
||||
color: var(--c-warn);
|
||||
background: var(--c-warn-bg);
|
||||
border-color: var(--c-warn-border);
|
||||
}
|
||||
.status-completed {
|
||||
color: var(--c-done);
|
||||
background: var(--c-done-bg);
|
||||
border-color: var(--c-done-border);
|
||||
}
|
||||
.status-failed {
|
||||
color: var(--c-fail);
|
||||
background: var(--c-fail-bg);
|
||||
border-color: var(--c-fail-border);
|
||||
}
|
||||
.status-over_limit {
|
||||
color: var(--c-warn);
|
||||
background: var(--c-warn-bg);
|
||||
border-color: var(--c-warn-border);
|
||||
}
|
||||
.status-content_alias {
|
||||
color: var(--c-cyan);
|
||||
background: var(--c-cyan-bg);
|
||||
border-color: #b5e5ee;
|
||||
}
|
||||
|
||||
/* ========== Error / Empty / Banner ========== */
|
||||
.error-cell {
|
||||
@@ -1296,7 +1442,9 @@ tbody tr:hover {
|
||||
}
|
||||
|
||||
/* ========== Release Plan ========== */
|
||||
.release-plan-panel { margin-bottom: 14px; }
|
||||
.release-plan-panel {
|
||||
margin-bottom: 14px;
|
||||
}
|
||||
|
||||
.release-plan-filters {
|
||||
display: flex;
|
||||
@@ -1323,8 +1471,13 @@ tbody tr:hover {
|
||||
background: var(--bg-panel);
|
||||
}
|
||||
|
||||
.release-plan-filters .filter-check { cursor: pointer; }
|
||||
.release-plan-filters .filter-count { margin-left: auto; color: var(--ink-faint); }
|
||||
.release-plan-filters .filter-check {
|
||||
cursor: pointer;
|
||||
}
|
||||
.release-plan-filters .filter-count {
|
||||
margin-left: auto;
|
||||
color: var(--ink-faint);
|
||||
}
|
||||
|
||||
.release-plan-pager {
|
||||
display: flex;
|
||||
@@ -1440,9 +1593,13 @@ tbody tr:hover {
|
||||
}
|
||||
|
||||
/* ========== Dashboard ========== */
|
||||
.dashboard-recent { margin-top: 0; }
|
||||
.dashboard-recent {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.recent-list { display: grid; }
|
||||
.recent-list {
|
||||
display: grid;
|
||||
}
|
||||
|
||||
.recent-row {
|
||||
display: grid;
|
||||
@@ -1453,8 +1610,12 @@ tbody tr:hover {
|
||||
border-bottom: 1px solid var(--border-soft);
|
||||
}
|
||||
|
||||
.recent-row:last-child { border-bottom: 0; }
|
||||
.recent-row div { min-width: 0; }
|
||||
.recent-row:last-child {
|
||||
border-bottom: 0;
|
||||
}
|
||||
.recent-row div {
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.recent-row strong,
|
||||
.recent-row code {
|
||||
@@ -1519,7 +1680,9 @@ tbody tr:hover {
|
||||
}
|
||||
|
||||
/* ========== Asset ========== */
|
||||
.asset-summary { grid-template-columns: repeat(4, minmax(0, 1fr)); }
|
||||
.asset-summary {
|
||||
grid-template-columns: repeat(4, minmax(0, 1fr));
|
||||
}
|
||||
|
||||
.asset-toolbar label {
|
||||
display: flex;
|
||||
@@ -1604,7 +1767,9 @@ tbody tr:hover {
|
||||
font-family: var(--font-mono);
|
||||
}
|
||||
|
||||
.release-changeset-items { margin: 4px 0; }
|
||||
.release-changeset-items {
|
||||
margin: 4px 0;
|
||||
}
|
||||
|
||||
.release-changeset-items summary {
|
||||
cursor: pointer;
|
||||
@@ -1759,12 +1924,24 @@ tbody tr:hover {
|
||||
|
||||
/* ========== Responsive ========== */
|
||||
@media (max-width: 860px) {
|
||||
.summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
||||
.asset-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
||||
.scan-audit-grid { grid-template-columns: 1fr; }
|
||||
.batch-grid { grid-template-columns: 1fr; }
|
||||
.journey-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
||||
.review-decision-guide { grid-template-columns: 1fr; }
|
||||
.summary-grid {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
.asset-summary {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
.scan-audit-grid {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
.batch-grid {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
.journey-steps {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
.review-decision-guide {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 760px) {
|
||||
@@ -1773,7 +1950,9 @@ tbody tr:hover {
|
||||
transform: translateX(-105%);
|
||||
transition: transform 180ms ease;
|
||||
}
|
||||
.sidebar.open { transform: translateX(0); }
|
||||
.sidebar.open {
|
||||
transform: translateX(0);
|
||||
}
|
||||
.sidebar-backdrop {
|
||||
position: fixed;
|
||||
z-index: 35;
|
||||
@@ -1789,8 +1968,12 @@ tbody tr:hover {
|
||||
width: 100%;
|
||||
margin-left: 0;
|
||||
}
|
||||
.workspace-topbar { align-items: center; }
|
||||
.workspace-context-tabs { display: none; }
|
||||
.workspace-topbar {
|
||||
align-items: center;
|
||||
}
|
||||
.workspace-context-tabs {
|
||||
display: none;
|
||||
}
|
||||
.mobile-nav-toggle {
|
||||
display: grid;
|
||||
width: 32px;
|
||||
@@ -1816,8 +1999,12 @@ tbody tr:hover {
|
||||
align-items: stretch;
|
||||
flex-direction: column;
|
||||
}
|
||||
.summary-grid { grid-template-columns: 1fr; }
|
||||
.asset-summary { grid-template-columns: 1fr; }
|
||||
.summary-grid {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
.asset-summary {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
.asset-toolbar label,
|
||||
.pagination,
|
||||
.batch-create-bar {
|
||||
@@ -1831,13 +2018,28 @@ tbody tr:hover {
|
||||
align-items: flex-start;
|
||||
flex-direction: column;
|
||||
}
|
||||
.journey-heading { display: flex; }
|
||||
.journey-heading p { text-align: left; }
|
||||
.journey-steps { grid-template-columns: 1fr; }
|
||||
.current-guidance { display: flex; }
|
||||
.guidance-step { max-width: none; }
|
||||
.recent-row { grid-template-columns: minmax(0, 1fr) auto; }
|
||||
.recent-row time { grid-column: 1 / -1; text-align: left; }
|
||||
.journey-heading {
|
||||
display: flex;
|
||||
}
|
||||
.journey-heading p {
|
||||
text-align: left;
|
||||
}
|
||||
.journey-steps {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
.current-guidance {
|
||||
display: flex;
|
||||
}
|
||||
.guidance-step {
|
||||
max-width: none;
|
||||
}
|
||||
.recent-row {
|
||||
grid-template-columns: minmax(0, 1fr) auto;
|
||||
}
|
||||
.recent-row time {
|
||||
grid-column: 1 / -1;
|
||||
text-align: left;
|
||||
}
|
||||
}
|
||||
|
||||
/* ── 登录 / 强制改密 / 顶栏身份(A · Data-console) ─────────────── */
|
||||
@@ -1856,13 +2058,28 @@ tbody tr:hover {
|
||||
border: 1px solid var(--border-base);
|
||||
border-radius: 10px;
|
||||
padding: 28px 26px 24px;
|
||||
box-shadow: 0 18px 46px rgba(15, 23, 32, 0.10);
|
||||
box-shadow: 0 18px 46px rgba(15, 23, 32, 0.1);
|
||||
display: grid;
|
||||
gap: 14px;
|
||||
}
|
||||
.login-card h1 { margin: 0; font-size: 20px; color: var(--ink-strong); letter-spacing: 0.01em; }
|
||||
.login-subtitle { margin: 0; color: var(--ink-mute); font-size: 13px; }
|
||||
.login-card label { display: grid; gap: 6px; font-size: 13px; color: var(--ink-base); font-weight: 600; }
|
||||
.login-card h1 {
|
||||
margin: 0;
|
||||
font-size: 20px;
|
||||
color: var(--ink-strong);
|
||||
letter-spacing: 0.01em;
|
||||
}
|
||||
.login-subtitle {
|
||||
margin: 0;
|
||||
color: var(--ink-mute);
|
||||
font-size: 13px;
|
||||
}
|
||||
.login-card label {
|
||||
display: grid;
|
||||
gap: 6px;
|
||||
font-size: 13px;
|
||||
color: var(--ink-base);
|
||||
font-weight: 600;
|
||||
}
|
||||
.login-card input {
|
||||
padding: 10px 12px;
|
||||
border: 1px solid var(--border-strong);
|
||||
@@ -1871,12 +2088,25 @@ tbody tr:hover {
|
||||
background: var(--bg-panel);
|
||||
color: var(--ink-strong);
|
||||
}
|
||||
.login-card input:focus { outline: 2px solid var(--c-run); outline-offset: 1px; border-color: transparent; }
|
||||
.login-card button[type="submit"] { width: 100%; margin-top: 4px; }
|
||||
.login-card input:focus {
|
||||
outline: 2px solid var(--c-run);
|
||||
outline-offset: 1px;
|
||||
border-color: transparent;
|
||||
}
|
||||
.login-card button[type='submit'] {
|
||||
width: 100%;
|
||||
margin-top: 4px;
|
||||
}
|
||||
|
||||
/* Password visibility toggle: button sits inside the field's right edge. */
|
||||
.password-field { position: relative; display: block; }
|
||||
.password-field input { width: 100%; padding-right: 56px; }
|
||||
.password-field {
|
||||
position: relative;
|
||||
display: block;
|
||||
}
|
||||
.password-field input {
|
||||
width: 100%;
|
||||
padding-right: 56px;
|
||||
}
|
||||
.password-toggle {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
@@ -1892,34 +2122,128 @@ tbody tr:hover {
|
||||
line-height: 20px;
|
||||
cursor: pointer;
|
||||
}
|
||||
.password-toggle:hover { border-color: var(--c-run, #2f6feb); color: var(--c-run, #2f6feb); }
|
||||
.login-error { margin: 0; font-size: 13px; color: var(--c-fail); background: var(--c-fail-bg); border: 1px solid var(--c-fail-border); border-radius: 6px; padding: 8px 10px; }
|
||||
.login-secondary { background: transparent; border: none; color: var(--ink-mute); font-size: 12.5px; cursor: pointer; text-decoration: underline; }
|
||||
.password-toggle:hover {
|
||||
border-color: var(--c-run, #2f6feb);
|
||||
color: var(--c-run, #2f6feb);
|
||||
}
|
||||
.login-error {
|
||||
margin: 0;
|
||||
font-size: 13px;
|
||||
color: var(--c-fail);
|
||||
background: var(--c-fail-bg);
|
||||
border: 1px solid var(--c-fail-border);
|
||||
border-radius: 6px;
|
||||
padding: 8px 10px;
|
||||
}
|
||||
.login-secondary {
|
||||
background: transparent;
|
||||
border: none;
|
||||
color: var(--ink-mute);
|
||||
font-size: 12.5px;
|
||||
cursor: pointer;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.topbar-user { position: relative; margin-left: auto; }
|
||||
.topbar-user {
|
||||
position: relative;
|
||||
margin-left: auto;
|
||||
}
|
||||
.topbar-user-button {
|
||||
display: inline-flex; align-items: center; gap: 8px;
|
||||
background: var(--bg-soft); border: 1px solid var(--border-base); border-radius: 999px;
|
||||
padding: 4px 12px 4px 4px; cursor: pointer; color: var(--ink-base); font: inherit;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
background: var(--bg-soft);
|
||||
border: 1px solid var(--border-base);
|
||||
border-radius: 999px;
|
||||
padding: 4px 12px 4px 4px;
|
||||
cursor: pointer;
|
||||
color: var(--ink-base);
|
||||
font: inherit;
|
||||
}
|
||||
.topbar-user-button:hover {
|
||||
background: var(--bg-hover);
|
||||
}
|
||||
.topbar-user-button:hover { background: var(--bg-hover); }
|
||||
.topbar-user-avatar {
|
||||
width: 26px; height: 26px; border-radius: 50%;
|
||||
background: var(--side-bg); color: var(--side-accent);
|
||||
display: grid; place-items: center; font-size: 13px; font-weight: 700;
|
||||
width: 26px;
|
||||
height: 26px;
|
||||
border-radius: 50%;
|
||||
background: var(--side-bg);
|
||||
color: var(--side-accent);
|
||||
display: grid;
|
||||
place-items: center;
|
||||
font-size: 13px;
|
||||
font-weight: 700;
|
||||
}
|
||||
.topbar-user-name {
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
}
|
||||
.role-badge {
|
||||
font-size: 11px;
|
||||
padding: 1px 8px;
|
||||
border-radius: 999px;
|
||||
border: 1px solid var(--border-base);
|
||||
background: var(--bg-panel);
|
||||
color: var(--ink-mute);
|
||||
}
|
||||
.role-badge.role-admin {
|
||||
color: var(--c-run);
|
||||
border-color: var(--c-run-border);
|
||||
background: var(--c-run-bg);
|
||||
}
|
||||
.role-badge.role-engineer {
|
||||
color: var(--c-done);
|
||||
border-color: var(--c-done-border);
|
||||
background: var(--c-done-bg);
|
||||
}
|
||||
.topbar-user-name { font-size: 13px; font-weight: 600; }
|
||||
.role-badge { font-size: 11px; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--border-base); background: var(--bg-panel); color: var(--ink-mute); }
|
||||
.role-badge.role-admin { color: var(--c-run); border-color: var(--c-run-border); background: var(--c-run-bg); }
|
||||
.role-badge.role-engineer { color: var(--c-done); border-color: var(--c-done-border); background: var(--c-done-bg); }
|
||||
.topbar-user-menu {
|
||||
position: absolute; right: 0; top: calc(100% + 6px); z-index: 30;
|
||||
background: var(--bg-panel); border: 1px solid var(--border-base); border-radius: 8px;
|
||||
box-shadow: 0 12px 30px rgba(15, 23, 32, 0.12); min-width: 140px; padding: 4px;
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: calc(100% + 6px);
|
||||
z-index: 30;
|
||||
background: var(--bg-panel);
|
||||
border: 1px solid var(--border-base);
|
||||
border-radius: 8px;
|
||||
box-shadow: 0 12px 30px rgba(15, 23, 32, 0.12);
|
||||
min-width: 140px;
|
||||
padding: 4px;
|
||||
}
|
||||
.topbar-user-menu button {
|
||||
width: 100%;
|
||||
text-align: left;
|
||||
background: transparent;
|
||||
border: none;
|
||||
padding: 8px 10px;
|
||||
border-radius: 6px;
|
||||
cursor: pointer;
|
||||
font: inherit;
|
||||
color: var(--ink-base);
|
||||
}
|
||||
.topbar-user-menu button:hover {
|
||||
background: var(--bg-hover);
|
||||
}
|
||||
.topbar-user-menu button { width: 100%; text-align: left; background: transparent; border: none; padding: 8px 10px; border-radius: 6px; cursor: pointer; font: inherit; color: var(--ink-base); }
|
||||
.topbar-user-menu button:hover { background: var(--bg-hover); }
|
||||
|
||||
.member-create-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border-soft); }
|
||||
.member-create-form label { display: grid; gap: 5px; font-size: 12.5px; color: var(--ink-base); font-weight: 600; }
|
||||
.member-create-form input, .member-create-form select { padding: 8px 10px; border: 1px solid var(--border-strong); border-radius: 6px; font: inherit; background: var(--bg-panel); }
|
||||
.member-create-form {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 12px;
|
||||
align-items: flex-end;
|
||||
margin-top: 14px;
|
||||
padding-top: 14px;
|
||||
border-top: 1px solid var(--border-soft);
|
||||
}
|
||||
.member-create-form label {
|
||||
display: grid;
|
||||
gap: 5px;
|
||||
font-size: 12.5px;
|
||||
color: var(--ink-base);
|
||||
font-weight: 600;
|
||||
}
|
||||
.member-create-form input,
|
||||
.member-create-form select {
|
||||
padding: 8px 10px;
|
||||
border: 1px solid var(--border-strong);
|
||||
border-radius: 6px;
|
||||
font: inherit;
|
||||
background: var(--bg-panel);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user