Fix media player collapsing in sidebar on short viewports and mobile
Added min-height and flex-shrink: 0 to prevent the sidebar flex layout from compressing the player to zero height. Desktop 120px, tablet 100px, phone 90px. The sidebar-spacer absorbs compression instead.
This commit is contained in:
parent
20582c531b
commit
96f80753fa
2 changed files with 8 additions and 1 deletions
|
|
@ -113,7 +113,8 @@
|
|||
}
|
||||
|
||||
#media-player {
|
||||
min-height: fit-content;
|
||||
min-height: 110px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.tool-help-button {
|
||||
|
|
@ -1915,6 +1916,8 @@
|
|||
margin: 8px 10px;
|
||||
padding: 14px;
|
||||
border-radius: 12px;
|
||||
min-height: 100px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.media-header {
|
||||
|
|
@ -2275,6 +2278,8 @@
|
|||
.media-player {
|
||||
margin: 6px 8px;
|
||||
padding: 10px;
|
||||
min-height: 90px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.media-player .track-title {
|
||||
|
|
|
|||
|
|
@ -523,6 +523,8 @@ body {
|
|||
0 2px 8px rgba(0, 0, 0, 0.3),
|
||||
inset 0 1px 0 rgba(255, 255, 255, 0.07);
|
||||
position: relative;
|
||||
min-height: 120px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.media-player:hover {
|
||||
|
|
|
|||
Loading…
Reference in a new issue