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) {