From 0133559dd4cc5692d5c57846a2bc66d99c6c2122 Mon Sep 17 00:00:00 2001 From: OoO Date: Tue, 12 May 2026 21:14:55 +0800 Subject: [PATCH] Polish vendor stockout home mobile layout --- web/static/css/page-vendor-index.css | 108 ++++++++++++++++++++++++++- 1 file changed, 106 insertions(+), 2 deletions(-) diff --git a/web/static/css/page-vendor-index.css b/web/static/css/page-vendor-index.css index cf7d7ca..a54958d 100644 --- a/web/static/css/page-vendor-index.css +++ b/web/static/css/page-vendor-index.css @@ -290,15 +290,119 @@ } @media (max-width: 720px) { + .vendor-v2-stack { + gap: 16px; + } + .vendor-hero, - .vendor-kpi-grid, - .vendor-flow-grid, .vendor-summary-grid { grid-template-columns: 1fr; } + + .vendor-hero-panel { + min-height: auto; + padding: 16px; + } + + .vendor-actions { + display: grid; + grid-template-columns: repeat(2, minmax(0, 1fr)); + gap: 8px; + margin-top: 16px; + } + + .vendor-action { + justify-content: center; + min-height: 36px; + padding: 8px 10px; + } + + .vendor-action:nth-child(3) { + grid-column: 1 / -1; + } + + .vendor-pulse { + padding: 14px 16px; + } + + .vendor-pulse-value { + margin-top: 6px; + font-size: 26px; + } + + .vendor-pulse-meta { + margin-top: 8px; + line-height: 1.55; + } + + .vendor-kpi-grid, + .vendor-flow-grid { + grid-template-columns: repeat(2, minmax(0, 1fr)); + gap: 8px; + } + + .vendor-card { + min-width: 0; + padding: 12px; + } + + .vendor-kpi-value { + margin-top: 6px; + font-size: 22px; + } + + .vendor-kpi-sub { + margin-top: 6px; + font-size: 10px; + } + + .vendor-flow-card { + min-height: 108px; + padding: 12px; + } + + .vendor-flow-card:last-child { + grid-column: 1 / -1; + } + + .vendor-flow-icon { + width: 30px; + height: 30px; + } + + .vendor-flow-title { + margin-top: 10px; + font-size: 13px; + } + + .vendor-table-head { + flex-direction: column; + align-items: stretch; + padding: 12px; + } + .vendor-title { font-size: 28px; } + .vendor-summary-item { + min-height: auto; + padding: 14px; border-right: 0; border-bottom: 1px solid var(--momo-border-light); } } + +@media (max-width: 420px) { + .vendor-title { + font-size: 26px; + } + + .vendor-subtitle { + font-size: 13px; + line-height: 1.65; + } + + .vendor-card, + .vendor-flow-card { + padding: 10px; + } +}