mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-11-25 03:54:47 +03:00
fix(clients): keep the mobile search/filter bar in view while scrolling (#7085)
With 100 or 200 clients per page the mobile card list is several screens long, and the search box, filter button and sort selector scrolled away with it. Make the mobile filter bar sticky just below the fixed drawer handle, with the card background so cards do not show through and the same padding stuck or not so the list never jumps.
This commit is contained in:
@@ -31,9 +31,15 @@
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
/* Sticks below the fixed drawer handle (12px + 40px) rather than under it. */
|
||||
.filter-bar.mobile {
|
||||
position: sticky;
|
||||
top: 60px;
|
||||
z-index: 10;
|
||||
gap: 6px;
|
||||
margin-bottom: 8px;
|
||||
margin: 0 -12px 8px;
|
||||
padding: 6px 12px;
|
||||
background: var(--bg-card);
|
||||
}
|
||||
|
||||
.filter-bar.mobile > * {
|
||||
|
||||
Reference in New Issue
Block a user