fix: keep flash notices below the nav and close info ones on a timer #83
No reviewers
Labels
No labels
bug
critical
ebook-branch
high
low
main
medium
release-blocker
security
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
jfro/fuzzy_catalog!83
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/flash-below-nav"
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?
Closes #74
What changed
top-18, the navbar is ~67px) instead of over it. The batch scanner's own toast stack gets the same offset.info_timeoutattr onflash_group, default 7000). The timer pauses while the flash is hovered or focused. Error flashes stay until closed.assets/js/flash.js: arms flashes on controller pages at load, and anAutoDismissFlashLiveView hook for flashes a LiveView renders. Dismissing clicks the flash's own close button, so LiveViews clear the flash server-side (lv:clear-flash) as before.Tested
layouts_test.exs: info flash carries the hook + timeout and the offset; error flash doesn't auto-dismiss; timeout is configurable.mix precommitpasses (638 tests).