-
Notifications
You must be signed in to change notification settings - Fork 20
[ADV-183] Fix DocSearch layout shift by unsetting container min-width #944
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Docs Preview
|
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
|||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
||||||||||||
Deploying documentation with
|
| Latest commit: |
5860359
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://b6363053.documentation-21k.pages.dev |
| Branch Preview URL: | https://fix-adv-183-docsearch-layout.documentation-21k.pages.dev |
Docs build
|
User description
Problem
DocSearch applies a
min-widthto#docsearch-containerwhen focused/open, causing a persistent layout shift in the header.Fix
Override the default style to keep the search bar width stable.
PR Type
Bug fix
Description
Fixes DocSearch layout shift by unsetting container min-width
Prevents persistent header width changes when search is focused
Diagram Walkthrough
File Walkthrough
index.scss
Override DocSearch container min-width styledocs/.vuepress/styles/index.scss
min-widthon#docsearch-containerelement!importantflag to override DocSearch default styles