polish premium webui layout

This commit is contained in:
Your Name committed 2026-06-01 14:10:32 +08:00
1 parent 60741369f2
commit 204ed24c67
2 files changed
+431 -22

No files matched your search

+430 -21
View File
@@ -888,7 +888,12 @@ body {
:root[data-premium-panel="actionLogs"] .app,
:root[data-premium-panel="stats"] .app,
:root[data-premium-panel="monitor"] .app,
:root[data-premium-panel="reservations"] .app {
:root[data-premium-panel="reservations"] .app,
:root[data-premium-panel="run"] .app,
:root[data-premium-panel="filter"] .app,
:root[data-premium-panel="yanghao"] .app,
:root[data-premium-panel="keywords"] .app,
:root[data-premium-panel="debug"] .app {
grid-template-columns: 1fr;
grid-template-areas:
"top"
@@ -947,7 +952,7 @@ body {
.title {
font-size: 19px;
font-weight: 850;
font-weight: 800;
line-height: 1.05;
}
@@ -1180,8 +1185,8 @@ body {
.overviewValue {
margin-top: 6px;
color: #101936;
font-size: 24px;
font-weight: 850;
font-size: 22px;
font-weight: 800;
line-height: 1.05;
}
@@ -1201,9 +1206,11 @@ body {
grid-column: 1 / -1;
display: grid;
gap: 10px;
min-width: 0;
}
.premiumDashCard {
min-width: 0;
padding: 13px 14px;
border: 1px solid #edf0f6;
border-radius: 8px;
@@ -1226,7 +1233,7 @@ body {
.premiumDashTitle {
color: #111827;
font-size: 14px;
font-weight: 900;
font-weight: 850;
}
.premiumDashTools {
@@ -1744,6 +1751,16 @@ body {
background: transparent;
}
:root:not([data-premium-panel="device"]) .panels {
display: grid;
grid-template-columns: minmax(0, 1fr);
gap: 10px;
}
:root:not([data-premium-panel="device"]) .panel.active {
display: block;
}
:root:not([data-premium-panel="device"]) .cardTitle {
margin: 0 0 12px;
padding: 13px 14px;
@@ -1762,12 +1779,15 @@ body {
}
.panel > .sectionTitle {
position: static;
margin: 8px 0 0;
padding: 13px 14px 9px;
border: 1px solid #edf0f6;
border-bottom: 0;
border-radius: 8px 8px 0 0;
background: #ffffff;
background:
linear-gradient(90deg, rgba(109, 93, 252, 0.06), transparent 48%),
#ffffff;
}
.panel > .sectionTitle:first-child {
@@ -1777,10 +1797,12 @@ body {
.panel > .row,
.panel > .rowActions {
margin-top: 0;
padding: 10px 14px;
padding: 12px 14px;
border-right: 1px solid #edf0f6;
border-left: 1px solid #edf0f6;
background: #ffffff;
background:
linear-gradient(180deg, rgba(248, 250, 252, 0.72), rgba(255, 255, 255, 0.95)),
#ffffff;
}
.panel > .row {
@@ -1793,6 +1815,16 @@ body {
border-radius: 0 0 8px 8px;
}
:root:not([data-premium-panel="device"]) .panel > .sectionTitle,
:root:not([data-premium-panel="device"]) .panel > .row,
:root:not([data-premium-panel="device"]) .panel > .rowActions {
min-width: 0;
}
:root:not([data-premium-panel="device"]) .panel > .row {
min-height: 74px;
}
.panel.cardLog .log {
min-height: 470px;
max-height: 470px;
@@ -1820,6 +1852,186 @@ body {
to { opacity: 1; transform: translateY(0); }
}
.premiumDashboard {
grid-column: 1 / -1;
display: grid;
gap: 10px;
min-width: 0;
}
.premiumDashCard {
min-width: 0;
padding: 13px 14px;
border: 1px solid #edf0f6;
border-radius: 8px;
background:
linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(251, 252, 255, 0.96)),
#ffffff;
box-shadow:
0 8px 24px rgba(15, 23, 42, 0.045),
0 1px 0 rgba(255, 255, 255, 0.9) inset;
overflow: hidden;
}
.premiumDashHead {
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
margin-bottom: 10px;
}
.premiumDashTitle {
color: #111827;
font-size: 14px;
font-weight: 850;
line-height: 1.2;
}
.premiumDashTools {
display: flex;
flex-wrap: wrap;
justify-content: flex-end;
gap: 6px;
}
.premiumDashTools span,
.premiumDashCount {
padding: 4px 7px;
border: 1px solid #e7eaf1;
border-radius: 6px;
color: #6b7280;
background: #fbfcff;
font-size: 11px;
font-weight: 750;
line-height: 1;
}
.premiumTrendSvg {
display: block;
width: 100%;
height: 170px;
overflow: visible;
}
.premiumTrendGrid {
fill: none;
stroke: #eef1f7;
stroke-dasharray: 3 5;
}
.premiumTrendArea {
fill: url(#premiumTrendFill);
}
.premiumTrendLine {
fill: none;
stroke: #6d5dfc;
stroke-width: 3;
stroke-linecap: round;
filter: drop-shadow(0 6px 7px rgba(109, 93, 252, 0.18));
}
.premiumTrendGhost {
fill: none;
stroke: #b8c0d4;
stroke-width: 2;
stroke-dasharray: 5 7;
stroke-linecap: round;
}
.premiumTrendAxis,
.premiumTrendTick {
fill: #8a94a6;
font-family: var(--font-ui);
font-size: 10px;
font-weight: 700;
}
.premiumTrendPoint {
fill: #ffffff;
stroke: #6d5dfc;
stroke-width: 2;
}
.premiumTrendPointHot {
fill: #6d5dfc;
stroke: #ffffff;
filter: drop-shadow(0 5px 7px rgba(109, 93, 252, 0.35));
}
.premiumDeviceTable,
.premiumLatestLogs {
display: grid;
gap: 0;
min-width: 0;
}
.premiumDeviceRow,
.premiumLogRow {
display: grid;
align-items: center;
min-height: 30px;
border-bottom: 1px solid #eef1f7;
color: #4b5563;
font-size: 11px;
font-family: var(--font-ui);
line-height: 1.35;
}
.premiumDeviceRow {
grid-template-columns: 78px minmax(0, 1fr) 50px;
gap: 8px;
}
.premiumDeviceHead {
min-height: 26px;
color: #667085;
background: #f8faff;
font-weight: 750;
}
.premiumDeviceHead b,
.premiumDeviceHead em {
color: #667085;
font-weight: 750;
}
.premiumDeviceRow b {
min-width: 0;
overflow: hidden;
color: #111827;
font-weight: 760;
text-overflow: ellipsis;
white-space: nowrap;
}
.premiumDeviceRow em {
min-width: 0;
overflow: hidden;
color: #16a66a;
font-style: normal;
font-weight: 820;
text-overflow: ellipsis;
white-space: nowrap;
}
.premiumLogRow {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.premiumLinkBtn {
min-height: 26px;
border: 0;
color: #6d5dfc;
background: transparent;
font-size: 11px;
font-weight: 820;
cursor: pointer;
}
@media (max-width: 1120px) {
.premiumReplica {
display: none;
@@ -1876,26 +2088,40 @@ body {
@media (max-width: 760px) {
:root {
--page-pad: 10px;
--page-pad: 8px;
--overview-gap: 8px;
--control-height: 34px;
}
.app {
gap: 10px;
gap: 8px;
min-height: auto;
padding: 8px;
}
.header {
padding: 12px;
display: grid;
grid-template-columns: 1fr;
gap: 8px;
padding: 10px;
border-radius: 8px;
}
.brandBlock {
align-items: center;
min-width: 0;
gap: 10px;
}
.brandMark {
flex-basis: 38px;
width: 38px;
height: 38px;
flex-basis: 34px;
width: 34px;
height: 34px;
}
.title {
font-size: 20px;
font-weight: 800;
}
.subtitle {
@@ -1907,16 +2133,143 @@ body {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.overview {
.header-actions {
display: grid;
grid-template-columns: 1fr;
gap: 8px;
margin-top: 0;
}
.primaryActions,
.secondaryActions {
display: grid;
grid-auto-flow: row;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 6px;
}
.header .btn {
min-height: 34px;
padding: 0 8px;
font-size: 13px;
}
.header .btnIcon {
width: 15px;
height: 15px;
}
#btnTheme {
width: auto;
}
.overview {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.overviewCard {
min-height: 82px;
min-height: 88px;
padding: 11px 12px;
}
.overviewValue {
font-size: 24px;
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 6px;
max-width: 100%;
font-size: 20px;
font-weight: 800;
line-height: 1.12;
overflow-wrap: anywhere;
}
.overviewMeta {
overflow-wrap: anywhere;
}
.premiumMetricIcon {
display: none;
}
.premiumDashboard {
gap: 8px;
}
.premiumDashCard {
padding: 11px;
}
.premiumDashHead {
margin-bottom: 8px;
}
.premiumDashTitle {
font-size: 13px;
}
.premiumDashTools {
gap: 4px;
}
.premiumDashTools span,
.premiumDashCount {
padding: 4px 6px;
font-size: 10px;
}
.premiumTrendSvg {
height: 138px;
}
.premiumTrendLine {
stroke-width: 2.4;
}
.premiumTrendGhost {
stroke-width: 1.6;
}
.premiumTrendAxis,
.premiumTrendTick {
font-size: 10px;
font-weight: 650;
}
.premiumDeviceTable {
gap: 6px;
}
.premiumDeviceRow {
grid-template-columns: minmax(84px, 0.74fr) minmax(0, 1.1fr) minmax(56px, 0.58fr);
min-height: 34px;
padding: 0 2px 5px;
gap: 6px;
font-size: 11px;
}
.premiumDeviceHead {
display: none;
}
.premiumDeviceRow b,
.premiumDeviceRow em {
white-space: normal;
overflow-wrap: anywhere;
}
.premiumLatestLogs {
gap: 6px;
}
.premiumLogRow {
min-height: 32px;
padding: 6px 8px;
border: 1px solid #e7ecef;
border-radius: 7px;
background: #f8fbfa;
white-space: normal;
overflow-wrap: anywhere;
}
.workspaceHeader {
@@ -1925,13 +2278,36 @@ body {
}
.workspaceTitle {
font-size: 27px;
font-size: 24px;
font-weight: 800;
}
.panel,
.card[data-panel],
.configRail {
padding: 14px;
padding: 12px;
border-radius: 8px;
}
.sideNav {
gap: 8px;
padding: 6px;
scroll-snap-type: x proximity;
}
.tabBtn {
min-width: 88px;
min-height: 36px;
padding: 0 8px;
scroll-snap-align: start;
}
.tabText {
font-size: 13px;
}
.configWorkspace {
padding: 0;
}
.row.grid2,
@@ -1977,8 +2353,10 @@ body {
.panel.cardLog .log,
.log {
min-height: clamp(360px, 56vh, 620px);
max-height: clamp(360px, 56vh, 620px);
min-height: clamp(320px, 52vh, 560px);
max-height: clamp(320px, 52vh, 560px);
font-size: 12px;
white-space: pre;
}
.toastContainer {
@@ -2031,6 +2409,37 @@ body {
grid-template-columns: 1fr;
}
.overviewCard {
min-height: 92px;
}
.overviewValue {
max-width: 100%;
font-size: 21px;
}
.premiumDashHead {
align-items: flex-start;
}
.premiumTrendSvg {
height: 122px;
}
.premiumDeviceRow {
grid-template-columns: 1fr;
min-height: 0;
padding: 8px;
border: 1px solid #e7ecef;
border-radius: 7px;
background: #f8fbfa;
}
.premiumDeviceRow b,
.premiumDeviceRow em {
font-size: 11px;
}
.tableRow {
grid-template-columns: 1fr;
}