From 2881a99040ec80a5c882f79bead54013f0fad56a Mon Sep 17 00:00:00 2001 From: yml2213 Date: Mon, 17 Aug 2026 11:43:00 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=84=E5=88=99=E7=BC=96=E8=BE=91=E5=B7=A6?= =?UTF-8?q?=E4=BE=A7=E5=9B=BA=E5=AE=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/frontend/src/styles/admin.css | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/apps/frontend/src/styles/admin.css b/apps/frontend/src/styles/admin.css index 5c36f1c1..5fe8db98 100644 --- a/apps/frontend/src/styles/admin.css +++ b/apps/frontend/src/styles/admin.css @@ -1008,6 +1008,25 @@ width: calc(30% - 8px); min-width: 360px; border-radius: 8px; + position: sticky; + top: 0; + align-self: flex-start; + max-height: calc(100vh - 84px); + overflow-y: auto; + z-index: 10; +} + +.product-rules-form-card::-webkit-scrollbar { + width: 5px; +} + +.product-rules-form-card::-webkit-scrollbar-thumb { + background: rgba(0, 0, 0, 0.15); + border-radius: 4px; +} + +.product-rules-form-card::-webkit-scrollbar-track { + background: transparent; } .product-rules-form-card .ant-card-body { @@ -1112,6 +1131,12 @@ flex: 1 1 100%; width: 100%; } + + .product-rules-form-card { + position: static; + max-height: none; + overflow-y: visible; + } } @media (max-width: 900px) {