Repository navigation
fix(toast): show toasts when no bottom bar has docked yet - #878
Merged
Merged
Conversation
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.
Summary
bottom: max(24px, var(--app-bottom-inset)). That variable is only written once a bottom bar (music mini player, Play On dock, playing elsewhere bar) reserves room, so before that the whole value was invalid andbottomfell back toauto.bottom: autothe toast host sat at the top of the window and the toast, anchored to the host's bottom edge, was drawn just above it, out of sight.0px, as every other use of it already does, so toasts sit 24 px above the window's bottom edge until a bar docks.Related issue
Closes #877
Change type
Validation
pnpm test: 617 files, 3504 tests passedpnpm build: passedcargo fmt --manifest-path src-tauri/Cargo.toml --all -- --checkcargo clippy --manifest-path src-tauri/Cargo.toml --all-targets --all-featurescargo test --manifest-path src-tauri/Cargo.toml --all-targets --all-featuresNo Rust files changed, so the cargo checks were not run. Smoke test on macOS (Apple Silicon), dev build on a fresh test profile with no bottom bar docked: with the fix the toast measured top 835 / bottom 893 in a 917 px tall viewport (visible, bottom right). With the old value applied to the same toast it measured top -58 / bottom 0, above the window. Linux was not tested.
Screenshots or recordings
Risk and compatibility
Frontend only, one CSS value. No migrations, database, permission, playback, network or background work changes.