-
-
Notifications
You must be signed in to change notification settings - Fork 138
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix portrait mode detection #582
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR! While detecting orientation for the full screen player and related components probably makes sense, I'd disagree that you should also apply the same changes to the playbar, which is just width-based
@@ -63,7 +63,7 @@ const SliderValueWrapper = styled.div<{ $position: 'left' | 'right' }>` | |||
justify-content: center; | |||
max-width: 50px; | |||
|
|||
@media (width <= 768px) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be based on width alone (not orientation)
@@ -81,7 +81,7 @@ const ControlsContainer = styled.div` | |||
justify-content: center; | |||
height: 35px; | |||
|
|||
@media (width <= 768px) { | |||
@media (orientation: portrait) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here
@@ -30,7 +30,7 @@ const PlayerbarControlsGrid = styled.div` | |||
gap: 1rem; | |||
height: 100%; | |||
|
|||
@media (width <= 768px) { | |||
@media (orientation: portrait) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here
@@ -58,7 +58,7 @@ | |||
} | |||
} | |||
|
|||
@container (min-width: 768px) { | |||
@container (orientation: portrait) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And here
This PR contains the following updates: | Package | Update | Change | |---|---|---| | [ghcr.io/jeffvli/feishin](https://togithub.com/jeffvli/feishin) | minor | `0.6.1` -> `0.7.1` | --- > [!WARNING] > Some dependencies could not be looked up. Check the Dependency Dashboard for more information. --- ### Release Notes <details> <summary>jeffvli/feishin (ghcr.io/jeffvli/feishin)</summary> ### [`v0.7.1`](https://togithub.com/jeffvli/feishin/releases/tag/v0.7.1): 0.7.1 [Compare Source](https://togithub.com/jeffvli/feishin/compare/v0.7.0...v0.7.1) 0.7.1 released to fix missing Windows binary. **Full Changelog**: jeffvli/feishin@v0.7.0...v0.7.1 ### [`v0.7.0`](https://togithub.com/jeffvli/feishin/releases/tag/v0.7.0): 0.7.0 [Compare Source](https://togithub.com/jeffvli/feishin/compare/v0.6.1...v0.7.0) 0.7.0 is here! Moving forwards, release notes will be simplified as so. Thanks to all the contributors as always! #### Highlights - (UI) Added `Get Info` button on dropdowns to show extended details for the selected item - (UI) Changed titlebar on light theme to use a lighter color - (UI) Error page now shows server menu in case to handle cases where application can become stuck - (UI) Fixed synchronized lyrics not repeating when track is repeated on fullscreen player - (UI) Added toggle to switch between tracks and albums when double clicking an item in the genres list - (UI) (Jellyfin) Fixed lyrics parsing for Jellyfin v10.9.0 - (UI) (Navidrome) Adds `Share item` to item context menus - (UI) (Navidrome) Added `inPlaylist` and `notInPlaylist` operators for Navidrome smart playlists - (UI) (Navidrome) Added JSON preview for smart playlist builder output - (UI) Added Farsi and Chinese (Traditional) languages (thanks to translators!) - (Desktop) The positioning state of the application is now persisted (maximize, fullscreen, window position) - (Player) Various fixes/improvements with player implementation including mpris and scrobbling - ...and more: [view commits](https://togithub.com/jeffvli/feishin/compare/v0.6.1...v0.7.0) #### What's Changed - Bump the npm_and_yarn group across 1 directory with 2 updates by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/jeffvli/feishin/pull/542](https://togithub.com/jeffvli/feishin/pull/542) - Bump the npm_and_yarn group across 1 directory with 1 update by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/jeffvli/feishin/pull/551](https://togithub.com/jeffvli/feishin/pull/551) - Bump the npm_and_yarn group across 1 directory with 1 update by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/jeffvli/feishin/pull/557](https://togithub.com/jeffvli/feishin/pull/557) - Bump the npm_and_yarn group across 1 directory with 1 update by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/jeffvli/feishin/pull/561](https://togithub.com/jeffvli/feishin/pull/561) - \[bugfix]: Resolve MPV next/prev race condition by [@​kgarner7](https://togithub.com/kgarner7) in [https://github.com/jeffvli/feishin/pull/566](https://togithub.com/jeffvli/feishin/pull/566) - \[bugfix]: Add a fallback image to the dynamic background url by [@​iiPythonx](https://togithub.com/iiPythonx) in [https://github.com/jeffvli/feishin/pull/571](https://togithub.com/jeffvli/feishin/pull/571) - \[enhancement]: Show item details by [@​kgarner7](https://togithub.com/kgarner7) in [https://github.com/jeffvli/feishin/pull/573](https://togithub.com/jeffvli/feishin/pull/573) - Fix portrait mode detection by [@​Kaydax](https://togithub.com/Kaydax) in [https://github.com/jeffvli/feishin/pull/582](https://togithub.com/jeffvli/feishin/pull/582) - \[enhancement]: Support react-router links in Modal by [@​kgarner7](https://togithub.com/kgarner7) in [https://github.com/jeffvli/feishin/pull/586](https://togithub.com/jeffvli/feishin/pull/586) - \[enhancement]: Support toggling Album/Track view for gneres by [@​kgarner7](https://togithub.com/kgarner7) in [https://github.com/jeffvli/feishin/pull/591](https://togithub.com/jeffvli/feishin/pull/591) - Implement Navidrome sharing by [@​iiPythonx](https://togithub.com/iiPythonx) in [https://github.com/jeffvli/feishin/pull/575](https://togithub.com/jeffvli/feishin/pull/575) - \[bugfix]: Handle top-level songs for Jellyfin by [@​kgarner7](https://togithub.com/kgarner7) in [https://github.com/jeffvli/feishin/pull/553](https://togithub.com/jeffvli/feishin/pull/553) - Bump ejs from 3.1.9 to 3.1.10 in the npm_and_yarn group across 1 directory by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/jeffvli/feishin/pull/602](https://togithub.com/jeffvli/feishin/pull/602) - Fix LrcLib fetcher by [@​vukanovics](https://togithub.com/vukanovics) in [https://github.com/jeffvli/feishin/pull/603](https://togithub.com/jeffvli/feishin/pull/603) - Allow smaller album covers in card/poster display by [@​Dylancyclone](https://togithub.com/Dylancyclone) in [https://github.com/jeffvli/feishin/pull/598](https://togithub.com/jeffvli/feishin/pull/598) - Add new Navidrome smart playlist operators (up to v0.52.0) by [@​jeffvli](https://togithub.com/jeffvli) in [https://github.com/jeffvli/feishin/pull/604](https://togithub.com/jeffvli/feishin/pull/604) #### New Contributors - [@​Kaydax](https://togithub.com/Kaydax) made their first contribution in [https://github.com/jeffvli/feishin/pull/582](https://togithub.com/jeffvli/feishin/pull/582) - [@​vukanovics](https://togithub.com/vukanovics) made their first contribution in [https://github.com/jeffvli/feishin/pull/603](https://togithub.com/jeffvli/feishin/pull/603) - [@​Dylancyclone](https://togithub.com/Dylancyclone) made their first contribution in [https://github.com/jeffvli/feishin/pull/598](https://togithub.com/jeffvli/feishin/pull/598) **Full Changelog**: jeffvli/feishin@v0.6.1...v0.7.0 </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://togithub.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zNDcuMiIsInVwZGF0ZWRJblZlciI6IjM3LjM0OC4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJyZW5vdmF0ZS9jb250YWluZXIiLCJ0eXBlL21pbm9yIl19-->
For some reason it was hard coded to only switch to portrait mode when the window width is less-than or equal to 768px.
This was a very simple fix and seems to work perfectly fine after testing it for a bit with multiple window sizes.