Repository navigation
fix(heybox-up): defer the home comment preview to the desktop rail - #276
Merged
Merged
Conversation
The community home auto-opens the comment preview on arrival and adds body.heybox-up-rail-open, which the desktop stylesheet uses to hide the right rail. As a result the hot-ranking / shortcuts rail was mounted but invisible, so those settings looked inert at wide viewports. The auto-preview now yields to the right rail: when hot ranking (>=1200px) or shortcuts (>=1500px) are enabled, the first screen stays collapsed as the right-edge tab so the rail is visible. Manually opening the preview still expands it and makes the rail yield, as documented, and the preview re-evaluates when a rail preference toggles so changes apply live. Refs: #275
Owner
Author
Review reportVerdict: PASS — score 4.90 / 5.00. No unresolved P0/P1/P2 findings. What changed
Correctness
Tests
Notes (non-blocking, P3)
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Linked Issue
Resolves #275
Change summary
body.heybox-up-rail-open.DESKTOP_RAIL_PREFERENCE_EVENTso toggling a rail module applies immediately without a reload.defaultRightRailClaimsColumnguard (matchMedia + saved preferences, synchronous and DOM-order independent) plus an injectable parameter for tests.tests/heybox-up-rail-preview-defer.test.tscovering wide/narrow, all-modules-off, shortcuts-only, live toggle, and manual-open cases.Verification & Dependencies
pnpm typecheckpassed.pnpm testpassed: 61 files / 934 tests.pnpm build -- --target heybox-uppassed and emitted@version 0.12.25.git diff --cached --checkclean.Review conclusion
PASS - 4.90 / 5.00, no unresolved P0/P1/P2. See the review comment for details.
Permission Notice
This userscript change only affects UI/CSS behavior, documentation, and tests. It does not add permissions or call additional site endpoints.