Fix centering of search bar on small screens #112

Merged
jakob.scheid merged 3 commits from bug/center-searchbar into main 2026-06-04 15:33:15 +02:00
Member

Description

This PR fixes the layout bug where the search bar appeared off-center on small viewports (such as the search results view on mobile).

The issue was caused by an asymmetric padding-left and custom width: calc(...) on the .search-wrapper. This has been replaced with a clean, symmetric padding configuration utilizing box-sizing: border-box. The necessary text indentation has been safely moved directly onto the input element instead.

Related Issues

Closes #111

Changes

  • src/features/search/components/Searchbar.vue:
    • Restructured .search-wrapper to use symmetric padding and width: 100%.
    • Added box-sizing: border-box to prevent layout overflow.
    • Moved visual text padding directly into the .search-wrapper input style.
## Description This PR fixes the layout bug where the search bar appeared off-center on small viewports (such as the search results view on mobile). The issue was caused by an asymmetric `padding-left` and custom `width: calc(...)` on the `.search-wrapper`. This has been replaced with a clean, symmetric padding configuration utilizing `box-sizing: border-box`. The necessary text indentation has been safely moved directly onto the `input` element instead. ## Related Issues Closes #111 ## Changes - **`src/features/search/components/Searchbar.vue`**: - Restructured `.search-wrapper` to use symmetric padding and `width: 100%`. - Added `box-sizing: border-box` to prevent layout overflow. - Moved visual text padding directly into the `.search-wrapper input` style.
johannes.vos added this to the mvp-frontend milestone 2026-06-04 14:21:30 +02:00
johannes.vos added the
area
search-results
prio
medium
type
bug
labels 2026-06-04 14:21:30 +02:00
johannes.vos self-assigned this 2026-06-04 14:21:30 +02:00
johannes.vos added this to the MVP Frontend project 2026-06-04 14:21:30 +02:00
johannes.vos added 2 commits 2026-06-04 14:21:31 +02:00
johannes.vos moved this to Review in MVP Frontend on 2026-06-04 14:22:39 +02:00
jakob.scheid added 1 commit 2026-06-04 15:32:54 +02:00
jakob.scheid approved these changes 2026-06-04 15:32:59 +02:00
jakob.scheid merged commit 76fda9e5c6 into main 2026-06-04 15:33:15 +02:00
jakob.scheid deleted branch bug/center-searchbar 2026-06-04 15:33:15 +02:00
jakob.scheid moved this to Done in MVP Frontend on 2026-06-04 15:33:39 +02:00
Sign in to join this conversation.