Search bar does not adapt to screen size? (Dawn)

Search bar does not adapt to screen size? (Dawn)

manbru
Explorer
75 0 19

Hello,

 

My search bar does not get smaller when the screen gets smaller, the logo gets behind it and it all looks weird.

my store: https://r1vex.myshopify.com/ 

 

Normal:

Skärmavbild 2024-09-06 kl. 13.34.59.png

 

When i make the screen smaller :

Skärmavbild 2024-09-06 kl. 13.37.50.png

Replies 4 (4)
manbru
Explorer
75 0 19

Correct!

BSS-TekLabs
Shopify Partner
1842 526 612

- Here is the solution for you @manbru 
- Please follow these steps:

z5686811214059_e66de1953f1db631f9134af5cdb796ad.jpg

- Then find the theme.liquid file.
- Then add the following code at the before tag </head> and press 'Save' to save it.

<style>
@media only screen and (max-width: 1350px) {
input.search__input.field__input {
    width: auto !important;
}
}
</style>

 

- Please press 'Like' and mark it as 'Solution' if you find it helpful. Thank you.

If our suggestions are useful, please let us know by giving it a like or marking it as a solution .
Need help from our expert? Kindly share your request with us via community@bsscommerce.com
BSS Commerce - Full-service eCommerce Agency

For give Gift to customers and Upsell in Cart, check out Salepify: Free Gifts with purchase


Post purchase upsell, downsell offers to improve sales and AOV
Salemate Post Purchase Upsell

manbru
Explorer
75 0 19

Thanks for your replay, but i would want the search bars width to gradually become smaller.

 

Here's how it looks now after i've added the code you provided and also an example:

https://imgur.com/a/cKtVOCh 

manbru
Explorer
75 0 19

Excuse me have you had time to look att the video in my first reply?