Skip to content

Conversation

@nortonandreev
Copy link
Contributor

@nortonandreev nortonandreev commented Jan 6, 2026

User description

Refs ADV-183

Problem

DocSearch React applies a min-width to #docsearch-container when 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

  • Override DocSearch container min-width to prevent layout shift

  • Apply unset style with !important to maintain stable search bar width


Diagram Walkthrough

flowchart LR
  A["DocSearch applies min-width"] -->|causes| B["Layout shift in header"]
  C["Override with min-width unset"] -->|prevents| B
Loading

File Walkthrough

Relevant files
Bug fix
index.scss
Add CSS override for DocSearch container width                     

docs/.vuepress/styles/index.scss

  • Added CSS rule for #docsearch-container selector
  • Set min-width: unset !important to override DocSearch default styling
  • Prevents layout shift caused by DocSearch's min-width application on
    focus/open
+4/-0     

@nortonandreev nortonandreev self-assigned this Jan 6, 2026
@nortonandreev nortonandreev requested a review from a team as a code owner January 6, 2026 12:11
@CLAassistant
Copy link

CLAassistant commented Jan 6, 2026

CLA assistant check
All committers have signed the CLA.

@qodo-code-review
Copy link
Contributor

PR Compliance Guide 🔍

Below is a summary of compliance checks for this PR:

Security Compliance
🟢
No security concerns identified No security vulnerabilities detected by AI analysis. Human verification advised for critical code.
Ticket Compliance
🎫 No ticket provided
  • Create ticket/issue
Codebase Duplication Compliance
Codebase context is not defined

Follow the guide to enable codebase context checks.

Custom Compliance
🟢
Generic: Comprehensive Audit Trails

Objective: To create a detailed and reliable record of critical system actions for security analysis
and compliance.

Status: Passed

Learn more about managing compliance generic rules or creating your own custom rules

Generic: Meaningful Naming and Self-Documenting Code

Objective: Ensure all identifiers clearly express their purpose and intent, making code
self-documenting

Status: Passed

Learn more about managing compliance generic rules or creating your own custom rules

Generic: Robust Error Handling and Edge Case Management

Objective: Ensure comprehensive error handling that provides meaningful context and graceful
degradation

Status: Passed

Learn more about managing compliance generic rules or creating your own custom rules

Generic: Secure Error Handling

Objective: To prevent the leakage of sensitive system information through error messages while
providing sufficient detail for internal debugging.

Status: Passed

Learn more about managing compliance generic rules or creating your own custom rules

Generic: Secure Logging Practices

Objective: To ensure logs are useful for debugging and auditing without exposing sensitive
information like PII, PHI, or cardholder data.

Status: Passed

Learn more about managing compliance generic rules or creating your own custom rules

Generic: Security-First Input Validation and Data Handling

Objective: Ensure all data inputs are validated, sanitized, and handled securely to prevent
vulnerabilities

Status: Passed

Learn more about managing compliance generic rules or creating your own custom rules

Compliance status legend 🟢 - Fully Compliant
🟡 - Partial Compliant
🔴 - Not Compliant
⚪ - Requires Further Human Verification
🏷️ - Compliance label

@qodo-code-review
Copy link
Contributor

PR Code Suggestions ✨

Explore these optional code suggestions:

CategorySuggestion                                                                                                                                    Impact
General
Reset min-width to zero

Replace min-width: unset with min-width: 0 for better cross-browser consistency
and clearer intent.

docs/.vuepress/styles/index.scss [87-89]

 #docsearch-container {
-  min-width: unset !important;
+  min-width: 0 !important;
 }
  • Apply / Chat
Suggestion importance[1-10]: 4

__

Why: The suggestion correctly points out that using 0 instead of unset for min-width is more explicit and ensures consistent behavior, which improves code clarity and cross-browser compatibility.

Low
  • More

@nortonandreev nortonandreev closed this by deleting the head repository Jan 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants