Nerixyz / current-song2

Display the currently playing song/audio.
https://currentsong.nerixyz.de
86 stars 7 forks source link

min-width causes album art element to stretch #404

Closed admiralflapjack closed 8 months ago

admiralflapjack commented 8 months ago

using this theme.css: `:root { --theme-color: white; --image-overlay-opacity: 75%; }

song-container {

min-width: 450px;

}`

results in the album art element being stretched (not the art itself) instead of adding whitespace on the right:

image

Nerixyz commented 8 months ago

#image-container has flex: 1 1 (flex-grow: 1; flex-shrink: 1). If you disable that, it works:

:root {
  --theme-color: white;
  --image-overlay-opacity: 75%;
}
#song-container {
  min-width: 450px;
}
#image-container {
  flex-grow: 0; /* disables growth of this element */
}
admiralflapjack commented 8 months ago

Fixed! Thank you so much! <3