Search: make the advanced panel usable on a phone #98

Merged
jcoffey-dev merged 1 commits from fix/94-search-panel-phone into main 2026-11-16 15:55:51 +00:00
Owner

The bar's rule for its own field (.searchbar input) also matched every input in the advanced panel, which sits in the same form, so the text fields lost their borders and the checkboxes shrank to nothing. That happened at any width, not only on phones. On a phone the panel also hung from the search field, which is a sliver between the menu, logo and account buttons, so the Cancel and Search buttons were pushed out of it. Reported on the forum (t/232, with a screenshot).

The rule now covers only the bar's own field. At phone width the panel spans the top bar in one column, the button row wraps and the panel scrolls if it runs short. It also closes on a tap outside it, on Escape and on a page change, since the bar stays on screen across pages. Checked with the built stylesheet in headless Chromium at 390px and 1280px; the before render matches the reported screenshot.

Fixes #94

The bar's rule for its own field (`.searchbar input`) also matched every input in the advanced panel, which sits in the same form, so the text fields lost their borders and the checkboxes shrank to nothing. That happened at any width, not only on phones. On a phone the panel also hung from the search field, which is a sliver between the menu, logo and account buttons, so the Cancel and Search buttons were pushed out of it. Reported on the forum (t/232, with a screenshot). The rule now covers only the bar's own field. At phone width the panel spans the top bar in one column, the button row wraps and the panel scrolls if it runs short. It also closes on a tap outside it, on Escape and on a page change, since the bar stays on screen across pages. Checked with the built stylesheet in headless Chromium at 390px and 1280px; the before render matches the reported screenshot. Fixes #94
jcoffey-dev added 1 commit 2026-11-16 15:38:43 +00:00
Search: make the advanced panel usable on a phone
ci / node (pull_request) Skipped
ci / version (pull_request) Skipped
ci / docker-build (pull_request) Skipped
ci / publish (pull_request) Skipped
github/ci (branch) GitHub Actions
ci / github (pull_request) Successful in 1m44s
ci / announce (pull_request) Skipped
573f6e3965
The bar's rule for its own input (`.searchbar input`) matched every
input in the advanced panel too, since the panel sits in the same form:
the text fields lost their borders, the checkboxes shrank to nothing.
That was true at any width. On a phone the panel also hung from the
search field, which is only what the menu, logo and account buttons
leave, so it was a sliver with its buttons pushed out of it.

The rule now covers only the bar's field. At phone width the panel
spans the top bar in one column, the button row wraps, and the panel
scrolls if it runs short. It also closes on a tap outside it, on
Escape and when the page changes, since the bar stays on screen.

Fixes #94
jcoffey-dev merged commit da2bd6fd98 into main 2026-11-16 15:55:51 +00:00
jcoffey-dev deleted branch fix/94-search-panel-phone 2026-11-16 15:55:51 +00:00
Sign in to join this conversation.