[PR #7085] fix(clients): keep the mobile search/filter bar in view while scrolling #6639

Open
opened 2026-11-07 14:34:19 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/MHSanaei/3x-ui/pull/7085
Author: @Mo7amadd
Created: 11/5/2026
Status: 🔄 Open

Base: main ← Head: fix/clients-mobile-sticky-filter-bar


📝 Commits (1)

  • b8a2657 fix(clients): keep the mobile search/filter bar in view while scrolling

📊 Changes

1 file changed (+7 additions, -1 deletions)

View changed files

📝 frontend/src/pages/clients/ClientsPage.css (+7 -1)

📄 Description

Summary

On the mobile card view of the Clients page, the search / filter / sort bar now sticks to the top while the card list scrolls.

Why

With 100 or 200 clients per page, the card list on a phone is several screens long. Reaching the search box or the filter button means scrolling all the way back up.

What changed

  • ClientsPage.css only: .filter-bar.mobile becomes position: sticky at top: 60px, which is just below the fixed drawer handle (12px offset + 40px button) so the two never overlap. It gets the card background so cards scrolling underneath don't show through, and its padding is the same whether stuck or not, so the list never jumps when it sticks.

Type of change

  • Bug fix

Areas affected

  • Frontend (UI / panel pages)

How was this tested?

  • npm run typecheck, npm run lint, npm run format:check, npm run build and npm run build-storybook pass; the existing suites pass.
  • No automated test: CSS only. The manual check that demonstrates it, in npm run dev with a mocked API (120 clients) at the iPhone 13 viewport: scroll the card list; the bar stays at 60px from the top with the drawer handle fully visible above it, nothing shows through it, and the cards don't shift when it sticks; the same in the dark theme. Desktop is unaffected (the rule is scoped to .filter-bar.mobile).

Screenshots / recordings

mobile-scrolled

Breaking changes

None.

Checklist

  • I tested the change locally and confirmed the described behavior.
  • I added or updated tests for the new behavior (when applicable). (CSS only; see above.)
  • go build ./... and the test suite pass locally. (Frontend-only change; no Go code touched, so the Go suite was not run.)
  • For frontend changes: npm run lint, npm run typecheck, and npm run build pass.
  • I updated the Wiki / README / API docs if user-facing behavior changed.
  • My commits follow the project's existing message style.
  • I have no unrelated changes mixed into this PR.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/MHSanaei/3x-ui/pull/7085 **Author:** [@Mo7amadd](https://github.com/Mo7amadd) **Created:** 11/5/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `fix/clients-mobile-sticky-filter-bar` --- ### 📝 Commits (1) - [`b8a2657`](https://github.com/MHSanaei/3x-ui/commit/b8a265764a27b17606b33a3bbabf617e2303da55) fix(clients): keep the mobile search/filter bar in view while scrolling ### 📊 Changes **1 file changed** (+7 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `frontend/src/pages/clients/ClientsPage.css` (+7 -1) </details> ### 📄 Description ## Summary On the mobile card view of the Clients page, the search / filter / sort bar now sticks to the top while the card list scrolls. ## Why With 100 or 200 clients per page, the card list on a phone is several screens long. Reaching the search box or the filter button means scrolling all the way back up. ## What changed - `ClientsPage.css` only: `.filter-bar.mobile` becomes `position: sticky` at `top: 60px`, which is just below the fixed drawer handle (12px offset + 40px button) so the two never overlap. It gets the card background so cards scrolling underneath don't show through, and its padding is the same whether stuck or not, so the list never jumps when it sticks. ## Type of change - [x] Bug fix ## Areas affected - [x] Frontend (UI / panel pages) ## How was this tested? - `npm run typecheck`, `npm run lint`, `npm run format:check`, `npm run build` and `npm run build-storybook` pass; the existing suites pass. - No automated test: CSS only. The manual check that demonstrates it, in `npm run dev` with a mocked API (120 clients) at the iPhone 13 viewport: scroll the card list; the bar stays at 60px from the top with the drawer handle fully visible above it, nothing shows through it, and the cards don't shift when it sticks; the same in the dark theme. Desktop is unaffected (the rule is scoped to `.filter-bar.mobile`). ## Screenshots / recordings <img width="1170" height="1783" alt="mobile-scrolled" src="https://github.com/user-attachments/assets/609da138-482f-4931-a2f2-cfc9166d640c" /> ## Breaking changes None. ## Checklist - [x] I tested the change locally and confirmed the described behavior. - [ ] I added or updated tests for the new behavior (when applicable). *(CSS only; see above.)* - [ ] `go build ./...` and the test suite pass locally. *(Frontend-only change; no Go code touched, so the Go suite was not run.)* - [x] For frontend changes: `npm run lint`, `npm run typecheck`, and `npm run build` pass. - [ ] I updated the Wiki / README / API docs if user-facing behavior changed. - [x] My commits follow the project's existing message style. - [x] I have no unrelated changes mixed into this PR. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
MHSanaei/3x-ui#6639
No description provided.