Fix #278: popover viewport bounds #290
No reviewers
Labels
No labels
actions
bug
cli
duplicate
enhancement
fork
forum
git storage
help wanted
insights
invalid
issues
moderation
oidc
ownership transfer
packages
pr/merge protection rules
projects
pull requests
question
releases
sponsorships
tags
webhooks
wiki
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
crueber/walhub!290
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/issue-278"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes #278 — fixed-width popovers (clone menu, notification/error trays) overflowed a 390px phone viewport (clone-body measured hanging off at x = -10, tray off-screen).
Change (
web/src/ui.css, the live stylesheet —web/css/repo.cssuntouched, dead):max-width: calc(100vw - 1rem)bound on every audited absolute/fixed panel:.clone-body, .ref-drop, .tasks-drop, .notif-drop, .reaction-drop, .label-drop, .milestone-drop, .close-drop, .tag-drop, .tray. Right-anchored panels shrink into view instead of clipping; desktop widths (w-96/w-80/w-64) untouched — the bound only caps. Theme-independent (dark + light)..milestone-dropwas missing the opaque-popover treatment (same shape as.label-drop) — added to the shared rule.web/test/unit/popover-viewport.test.js(5 tests): bound lives in live css, covers all 10 panels, desktop widths kept, 390px fit arithmetic, milestone opacity.Verification: new test 5/5 green; full
node --test web/test/unit/*.test.js484 pass / 8 fail — all 8 fail identically on clean origin/main (missingnode_modules/markedin the fresh scratch worktree; all 73 pass in an env with deps installed). Narrow-viewport proof is structural (selector + fit arithmetic); no browser run — shared obscura daemon blocks loopback per task rules, noted as browser-open. Zero console errors (no runtime change); no new deps.