From 21a08e90f9a20dc6df0861767b85d6b8e31252ee Mon Sep 17 00:00:00 2001 From: qiuxiang <394405259@qq.com> Date: Mon, 26 Oct 2026 20:03:46 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=AE=89=E8=A3=85=E8=B4=B9=E6=98=8E?= =?UTF-8?q?=E7=BB=86=E6=94=AF=E6=8C=81=E6=A8=AA=E5=90=91=E6=BB=9A=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 为安装费和店铺明细增加实际横向溢出、底部滚动条和鼠标拖动;切换页签时重置滚动位置,并补充页面特征断言。 --- .../installation-fee-summary.blade.php | 113 +++++++++++++++++- tests/Feature/Business/ManagementCrudTest.php | 7 ++ 2 files changed, 116 insertions(+), 4 deletions(-) diff --git a/resources/views/business/pages/partials/installation-fee-summary.blade.php b/resources/views/business/pages/partials/installation-fee-summary.blade.php index 32e526e7..51075a4c 100644 --- a/resources/views/business/pages/partials/installation-fee-summary.blade.php +++ b/resources/views/business/pages/partials/installation-fee-summary.blade.php @@ -210,6 +210,7 @@ width: min(68rem, calc(100vw - 2rem)); max-width: none; max-height: calc(100vh - 2rem); + box-sizing: border-box; padding: 0; border: 1px solid #d8d2c7; border-radius: 0.75rem; @@ -351,13 +352,49 @@ } .installation-fee-dialog__scroll { - min-height: 12rem; + flex: 1 1 auto; + min-height: 0; + box-sizing: border-box; overflow: auto; - padding: 0 1.1rem; + padding: 0 1.1rem 0.65rem; + overscroll-behavior: contain; + scrollbar-color: #b9954f #f1ece3; + scrollbar-gutter: stable; + scrollbar-width: thin; + cursor: grab; + touch-action: pan-x pan-y; + } + + .installation-fee-dialog__scroll.is-dragging { + cursor: grabbing; + user-select: none; + } + + .installation-fee-dialog__scroll::-webkit-scrollbar { + width: 8px; + height: 8px; + } + + .installation-fee-dialog__scroll::-webkit-scrollbar-track { + background: #f1ece3; + } + + .installation-fee-dialog__scroll::-webkit-scrollbar-thumb { + border-radius: 999px; + background: #b9954f; + } + + .installation-fee-dialog__scroll::-webkit-scrollbar-thumb:hover { + background: #856632; + } + + .installation-fee-panel { + min-width: 100%; } .installation-fee-table { width: 100%; + min-width: 72rem; border-collapse: collapse; font-size: 0.75rem; font-variant-numeric: tabular-nums; @@ -370,6 +407,7 @@ line-height: 1.5; text-align: left; vertical-align: middle; + white-space: nowrap; } .installation-fee-table thead th { @@ -400,6 +438,7 @@ .installation-fee-platform-summary table { width: 100%; + min-width: 32rem; border-collapse: collapse; font-size: 0.75rem; font-variant-numeric: tabular-nums; @@ -412,6 +451,7 @@ line-height: 1.5; text-align: left; vertical-align: middle; + white-space: nowrap; } .installation-fee-platform-summary th { @@ -519,7 +559,11 @@ -