Skip to content

v1.2.4 - Fix Search Dropdown Width

Choose a tag to compare

@drjagan drjagan released this 05 Feb 03:33
· 26 commits to main since this release

Bug Fix

Search Results Dropdown Still Overflowing

Problem: The dropdown was still stretching beyond the viewport width despite v1.2.3 fixes.

Root Cause:

  • Absolutely positioned elements need a relative parent to constrain their width
  • Using w-full on an absolute element doesn't work as expected without proper positioning context

Solution:

  1. Added relative positioning to SearchInterface container
  2. Changed dropdown from w-full to left-0 right-0 - this anchors both edges to the parent
  3. Added overflow-hidden to result buttons to contain long text
  4. Added max-w-full to persistent mode for additional safety

The dropdown now properly constrains to its parent container width regardless of content length.


Full Changelog: v1.2.3...v1.2.4