Skip to content

fix: fix profile preview positioning in search dropdown (#1240)#1244

Merged
dimdenGD merged 1 commit into
dimdenGD:masterfrom
amnkarn:fix/profile-preview-fix-1240
Apr 25, 2026
Merged

fix: fix profile preview positioning in search dropdown (#1240)#1244
dimdenGD merged 1 commit into
dimdenGD:masterfrom
amnkarn:fix/profile-preview-fix-1240

Conversation

@amnkarn
Copy link
Copy Markdown
Contributor

@amnkarn amnkarn commented Apr 25, 2026

Fixes #1240

What this PR does:
This PR fixes a UI bug where profile previews were breaking the layout of the search results dropdown. Previously, hovering over a user in the search list would inject the preview inside the dropdown, causing it to expand or shift other elements.

Changes:
Forced Overlay Mode: Prevented isSticky logic from triggering for search results, ensuring the preview is always appended to document.body instead of being injected as a sibling.

Fixed Positioning: Re-calculated the top and left coordinates relative to the #search-input rather than the individual list item. This ensures the preview remains at a consistent height and doesn't "jump" while scrolling/hovering through the list.

Left-Side Alignment: Positioned the preview to the left of the search dropdown to avoid overlapping with the results and to handle limited screen space on the right side.

Z-Index Correction: Increased the stacking order to ensure the preview floats above all other navbar elements.

Screenshots:

Before:
image

After:
Screenshot 2026-04-25 134808

@dimdenGD dimdenGD merged commit 433a2d5 into dimdenGD:master Apr 25, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Profile previews break in search list

2 participants