generated from Seekra/repository-template
Fix centering of search bar on small screens #112
Reference in New Issue
Block a user
Delete Branch "bug/center-searchbar"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.