Skip to content

Commit

Permalink
✨ feat: add responsive playbar styles (#3)
Browse files Browse the repository at this point in the history
* attempted to fix responsivity of now playing bar.

* ✨ feat: add responsive styles to playbar

* feat: change max width to relative unit

---------

Co-authored-by: Sanooj Es <[email protected]>
  • Loading branch information
wakeupaj and sanoojes authored Sep 18, 2024
1 parent 06a5acd commit f9be803
Showing 1 changed file with 20 additions and 4 deletions.
24 changes: 20 additions & 4 deletions src/user.css
Original file line number Diff line number Diff line change
Expand Up @@ -694,19 +694,35 @@ footer.main-nowPlayingBar-container {
flex-direction: row;
}

@media (max-width: 70rem) {
.player-controls {
flex-direction: column;
}

.player-controls__buttons {
padding-left: 0;
margin-bottom: 0.5rem;
}

.main-nowPlayingBar-right,
.main-nowPlayingBar-left {
min-width: 25vw;
}
}

.main-trackInfo-container {
flex-grow: 1;
flex-basis: 0;
}

.main-nowPlayingBar-center {
max-width: none;
max-width: 55vw;
flex-grow: 1;
}

.main-nowPlayingBar-right {
min-width: 15vw;
width: 20vw;
min-width: fit-content;
width: 25vw;
}

.main-nowPlayingBar-left {
Expand Down Expand Up @@ -1121,4 +1137,4 @@ button.main-playPauseButton-button {

.eYvk_xcxVNMwCBkfY3O0 button:first-child {
order: 3;
}
}

0 comments on commit f9be803

Please sign in to comment.