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.
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.
jakob.scheid
changed title from Fix centering of search bar on small screens to Fix: centering of search bar on small screens2026-07-20 12:19:03 +02:00
jakob.scheid
changed title from Fix: centering of search bar on small screens to Fix(search): centering of search bar on small screens2026-07-20 12:28:42 +02:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
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-leftand customwidth: calc(...)on the.search-wrapper. This has been replaced with a clean, symmetric padding configuration utilizingbox-sizing: border-box. The necessary text indentation has been safely moved directly onto theinputelement instead.Related Issues
Closes #111
Changes
src/features/search/components/Searchbar.vue:.search-wrapperto use symmetric padding andwidth: 100%.box-sizing: border-boxto prevent layout overflow..search-wrapper inputstyle.Fix centering of search bar on small screensto Fix: centering of search bar on small screensFix: centering of search bar on small screensto Fix(search): centering of search bar on small screens