From 91bc56e1e1677c236dfcce03b8df68bf023c81f8 Mon Sep 17 00:00:00 2001 From: Lars Kiesow Date: Thu, 7 May 2026 02:05:04 +0200 Subject: [PATCH] Player view in landscape mode Rotating your phone to landscape mode and opening the player, the view wasn't using the available space very efficiently. Especially the cover image is not very helpful being pushed to a minimal size. This patch redesigned the view in landscape mode, pushing the cover image to the left half of the screen while the controls are moved to the right half of the screen. --- components/app/AudioPlayer.vue | 59 +++++++++++++++++++++++++++++++++- 1 file changed, 58 insertions(+), 1 deletion(-) diff --git a/components/app/AudioPlayer.vue b/components/app/AudioPlayer.vue index 69c1188b..db5fbafc 100644 --- a/components/app/AudioPlayer.vue +++ b/components/app/AudioPlayer.vue @@ -1,20 +1,31 @@ @@ -1013,6 +1032,12 @@ export default { .fullscreen .playerContainer { height: 200px; } +@media (orientation: landscape) { + .fullscreen .playerContainer { + width: 50%; + left: 50%; + } +} #playerContent { box-shadow: 0px -8px 8px #11111155; } @@ -1040,13 +1065,45 @@ export default { border-radius: 3px; overflow: hidden; } +@media (orientation: landscape) { + .fullscreen .cover-wrapper { + left: 25px !important; + top: 50px; + width: calc(50% - 25px) !important; + height: calc(100% - 85px) !important; + } + .fullscreen .cover-wrapper > div > div { + width: 100% !important; + height: 100% !important; + max-width: 100% !important; + max-height: 100% !important; + } + .fullscreen .cover-wrapper > div > div > div { + background-color: transparent; + } + .fullscreen .cover-wrapper img { + object-fit: contain; + } +} .total-track { bottom: 215px; left: 0; right: 0; } +@media (orientation: landscape) { + .fullscreen .total-track { + left: 50%; + width: 50%; + } +} +@media (orientation: landscape) { + .fullscreen .title-author-texts { + left: 50% !important; + width: 50% !important; + } +} .title-author-texts { transition: all 0.15s cubic-bezier(0.39, 0.575, 0.565, 1); transition-property: left, bottom, width, height;