Repository navigation
fix(patches): repair player bar layout on narrow windows - #283
Merged
Merged
Conversation
The responsiveness patch targeted the old player bar DOM. Deezer added a wrapper, so the selectors squeezed the whole three-column row to calc(49% - 52px) and left the columns overlapping at half-screen widths. Rewrite the <=800px and <=550px rules against the current structure: columns share the space and can shrink, the mood button is hidden below 800px, and only the cover is kept in the left column below 550px. Fixes #282
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.
Fixes #282.
Cause
The player bar rules in
07-improve-responsiveness.patchtargeted the old DOM. Deezer wrapped the bar in an extra container, so#page_player > div:first-child > div:first-childnow matched the whole three-column row and squeezed it tocalc(49% - 52px), while> div:nth-child(2)matched nothing. Columns kept fixed 33% widths and overlapped.Fix
Merged into patch 07 (no new patch), rewriting the <=800px and <=550px blocks against the current structure, using structural selectors rather than hashed class names:
Testing
Ran the patched app with Flow playing and checked 935, 800, 650, 550, 500 and 450px widths: no overlap.
patch -R --dry-runapplies cleanly. The packaged AppImage/Flatpak were not tested.