Skip to content

Commit 6402355

Browse files
authored
fix audiobook player cover pushing controls off-screen on resize (#2927) (#3100)
1 parent d4ed7da commit 6402355

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

booklore-ui/src/app/features/readers/audiobook-player/audiobook-player.component.scss

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -148,9 +148,8 @@ $border-color: rgba(255, 255, 255, 0.1);
148148
.cover-container {
149149
flex-shrink: 0;
150150
width: 100%;
151-
max-width: 480px;
151+
max-width: min(480px, 40vh);
152152
aspect-ratio: 1;
153-
margin-top: 1.5rem;
154153

155154
.cover-wrapper {
156155
position: relative;
@@ -712,8 +711,7 @@ $border-color: rgba(255, 255, 255, 0.1);
712711
}
713712

714713
.cover-container {
715-
max-width: 360px;
716-
margin-top: 1rem;
714+
max-width: min(360px, 35vh);
717715
}
718716

719717
.secondary-controls {
@@ -748,8 +746,7 @@ $border-color: rgba(255, 255, 255, 0.1);
748746

749747
@media (max-width: 480px) {
750748
.cover-container {
751-
max-width: 300px;
752-
margin-top: 0.5rem;
749+
max-width: min(300px, 30vh);
753750
}
754751

755752
.playback-controls {

0 commit comments

Comments
 (0)