Repository navigation
fix(ui): square uncomposited popovers and preview path-bar files - #1912
Conversation
Remove box-shadow and square popup corners on uncomposited X11 displays to eliminate black framing and corner artifacts. Request quick preview automatically when a file path is submitted in the location bar. Closes #1911
e83a741 to
0f789ac
Compare
…-popups-and-path-preview
Navigating away before a typed file path finished revealing left the preview target set, so a later selection of that file opened Quick Preview unasked. Clearing it on a navigation whose selection does not target the file also re-borrowed the RefCell it was reading, which panicked.
The peek panel is an in-window widget, so its shadow renders fine without a compositor; only tooltip and popover surfaces need the fallback.
…e menu baseline The context-menu baseline is captured on an uncomposited Xvfb display, so it showed the black shadow frame the fallback removes.
ReviewRequesting changes. The uncomposited popover CSS matches the widgets that own the black frame, and it stays under the user stylesheet. Path-bar Quick Preview crashes if another navigation happens before the parent folder selects the file. High
Reproduced: The flag is set at Clone the location out of the cell before Also clear the token in MediumDrop
LowThe new tests return only after a synchronous source has selected the file. Please cover a still-pending parent probe followed by
|
Review and cleanupMerged Review against the description and #1911.
Fixes pushed
Validation
Follow-ups outside this PR
CI: all checks green on attempt 3 of run 40601724020. Attempt 1 lost |
Description
#000000, causing popovers and context menus to display black shadow padding frames and clipped black corner tips. This change detects!display.is_composited()via a dynamic CSS provider and setsbox-shadow: none; border-radius: 0;so popovers are crisp with squared borders.Visual evidence
screenrecording-2026-10-28_03-49-24.mp4
How to test
/path/to/image.png) and press Enter.Expected result:
Popovers and menus on uncomposited X11 render clean square borders without black frames or pixel clipping. Submitting a file path navigates to the parent directory, focuses the file, and immediately opens Quick Preview for it.
Related issue
Closes #1911