Skip to content

Commit 160d647

Browse files
committed
fix(web): preserve player metadata width
1 parent b6d6b59 commit 160d647

2 files changed

Lines changed: 15 additions & 7 deletions

File tree

web/src/pages/Player/Player.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ const Player = () => {
9898
</Chip>
9999
</div>
100100
</Grid>
101-
<Grid item xs={2} sm={4} md={4} style={{maxWidth: "22rem"}}>
101+
<Grid item xs={2} sm={4} md={4} className="player-metadata-container">
102102
<Box
103103
className="album-art-container"
104104
sx={{

web/src/pages/Player/Player.scss

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,23 @@
2626
padding-right: 2.5vw;
2727
}
2828

29+
.player-metadata-container {
30+
width: 22rem;
31+
}
32+
2933
.player-album-art {
3034
align-self: center;
31-
max-height: 22rem;
35+
min-width: 22rem;
36+
min-height: 22rem;
37+
max-width: 352px;
38+
max-height: 352px;
39+
object-fit: contain;
3240
border-radius: 2.5%;
33-
@media (general.$is-portrait) {
34-
max-width: 85vw;
35-
}
36-
@media (max-width: general.$small-mobile) {
37-
max-width: 50vw;
41+
@media (max-width: general.$medium-mobile) {
42+
min-width: 98vw;
43+
min-height: 98vw;
44+
max-width: 98vw;
45+
max-height: 98vw;
3846
}
3947
}
4048

0 commit comments

Comments
 (0)