Repository navigation
Conversation
The tray reserved its fully expanded width even when collapsed, leaving empty bar space beside the chevron. Size from revealExtent and pin the chevron to the block edge so it holds still as the drawer opens (omacom#13182). Co-authored-by: AnPod <AnPod@users.noreply.github.com>
8584620 to
f243874
Compare
|
Reviewed at f243874 and run on an Omarchy ISO worker, with the shell linked to this branch and one tray item (udiskie) in the drawer. Nothing found that needs changing. The bug reproduces and this fixes it. On Tests. One visible change for the maintainer to weigh. When the tray is expanded, the chevron now sits between the drawer icons and the pinned icons ( Codex Medium reviewed the diff as a second opinion. It found no defects and named the same chevron-order and left/center-section changes. Its independence from this review is not guaranteed. It also noted that on a stock bar the reserved space sits in empty bar toward the center, so the visible effect is mostly the widget's reported width and any theme that paints behind each module. This now waits on the maintainer. |
The drawer now also holds bar widgets dragged into the tray section, and sizes itself on hasDrawer rather than on having tray items. Keep that condition and size the block from the rounded reveal extent. The test's check for the old full-extent sizing no longer assumes which condition guards it, so it still catches quattro's line. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
This no longer merged into Checked on an Omarchy ISO worker running the shell from this branch, with udiskie as the one tray item. On Tests, on the worker. No second opinion ran on this revision. The reviewer omabot uses (Codex Medium) had reached its daily limit, so this port was checked by one model only, Claude Opus 5.5. The earlier review of f243874 by Codex Medium does not cover the merge. This waits on a second review of 5c21869, and then on the maintainer. |
|
| grep -Fq 'expandIcon.implicitWidth + revealPx' "$tray" || | ||
| fail "horizontal drawer block width uses revealPx" | ||
| grep -Fq 'expandIcon.implicitHeight + revealPx' "$tray" || | ||
| fail "vertical drawer block height uses revealPx" | ||
| grep -Fq 'x: horizontalTrayRoot.drawerBlockWidth - width' "$tray" || | ||
| fail "horizontal chevron pins to the block's trailing edge" | ||
| grep -Fq 'y: verticalTrayRoot.drawerBlockHeight - height' "$tray" || | ||
| fail "vertical chevron pins to the block's trailing edge" | ||
| grep -Fq 'width: horizontalTrayRoot.revealPx' "$tray" || | ||
| fail "horizontal icon clip tracks revealPx" | ||
| grep -Fq 'height: verticalTrayRoot.revealPx' "$tray" || | ||
| fail "vertical icon clip tracks revealPx" |
There was a problem hiding this comment.
The new test checks source strings, not drawer sizes or positions. It would still pass if revealProgress stopped reaching zero or the parent stopped using the tray's changing size. Add a QML test that measures the collapsed and expanded drawer in both orientations, including the chevron's position in the bar.
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
Summary
Fixes #13182
The tray reserved its fully expanded width while collapsed, leaving empty bar space beside the chevron.
Supersedes #29 (same fix, this branch adds focused tests).
Change
revealExtenttest/shell.d/tray-drawer-width-test.shTest plan
bash test/shell.d/tray-drawer-width-test.sh