fix: gate Taro routes before rendering

This commit is contained in:
Codex
2026-07-02 01:55:07 +08:00
parent d8e3db79d2
commit 685856e02e
7 changed files with 354 additions and 12 deletions

View File

@@ -355,6 +355,13 @@
background: #fff;
}
.admin-row.nested {
margin-top: 14px;
border-color: #bfdbfe;
background: linear-gradient(135deg, #eff6ff, #fff);
box-shadow: none;
}
.admin-error {
display: block;
margin-top: 12px;
@@ -421,3 +428,57 @@
overflow-wrap: anywhere;
white-space: pre-wrap;
}
@media (min-width: 980px) {
.admin-page {
max-width: 1180px;
margin: 0 auto;
padding: 38px;
}
.admin-shell {
gap: 30px;
}
.admin-header {
padding: 38px;
}
.admin-title {
font-size: 44px;
}
.admin-grid {
grid-template-columns: repeat(4, minmax(0, 1fr));
}
.admin-grid.three,
.admin-metric-grid {
grid-template-columns: repeat(3, minmax(0, 1fr));
}
.admin-module-grid {
grid-template-columns: repeat(3, minmax(0, 1fr));
}
.admin-form-grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
}
@media (max-width: 520px) {
.admin-page {
padding: 20px;
}
.admin-grid,
.admin-grid.three,
.admin-metric-grid,
.admin-module-grid {
grid-template-columns: minmax(0, 1fr);
}
.admin-title {
font-size: 34px;
}
}