From f7703b4ae56f4fcd47e21869db37390ca14d3274 Mon Sep 17 00:00:00 2001 From: tresabhi <43380238+tresabhi@users.noreply.github.com> Date: Thu, 3 Dec 2026 21:55:06 -0600 Subject: [PATCH] sticky filters --- .../TankSearchDialog/index.module.css | 19 +++++++++++++++++-- .../src/components/TankSearchDialog/index.tsx | 10 ++++++---- 2 files changed, 23 insertions(+), 6 deletions(-) diff --git a/packages/website/src/components/TankSearchDialog/index.module.css b/packages/website/src/components/TankSearchDialog/index.module.css index f70848c0a..f602bada7 100644 --- a/packages/website/src/components/TankSearchDialog/index.module.css +++ b/packages/website/src/components/TankSearchDialog/index.module.css @@ -1,3 +1,18 @@ -.filters { - overflow-x: auto; +.controls { + position: sticky; + top: calc(-1 * var(--space-4)); + z-index: 1; + + display: flex; + flex-direction: column; + gap: var(--space-4); + + margin-block: calc(-1 * var(--space-4)); + padding-block: var(--space-4); + + background-color: var(--gray-2); + + .filters { + overflow-x: auto; + } } diff --git a/packages/website/src/components/TankSearchDialog/index.tsx b/packages/website/src/components/TankSearchDialog/index.tsx index 5ed7ebe27..6318e0d31 100644 --- a/packages/website/src/components/TankSearchDialog/index.tsx +++ b/packages/website/src/components/TankSearchDialog/index.tsx @@ -64,11 +64,13 @@ export function TankSearchDialog({ - +
+ -
- - +
+ + +