Open rlaphoenix opened 2 years ago
This could be done pretty easily with something like this:
.main-rootlist-rootlist * {
overflow: visible;
}
.main-rootlist-rootlistItemLink:hover span {
/* CSS here */
}
But these few lines here that darken the playlist icons on hover also darken the span
where the playlist name is and I haven't been able to find a way around it.
.main-rootlist-rootlistItemLink:hover,
.main-createPlaylistButton-button:hover,
.main-collectionLinkButton-collectionLinkButton:hover {
filter: brightness(50%);
}
Here's what it ends up looking like (don't mind the positioning, filter
is weird):
With filter | Without filter |
---|---|
A decent solution might be to find something else to use instead of filter: brightness(50%)
, but I don't know what that would be.
There's also the case of clamping the length of the playlist name, it can be done with JS but a CSS solution would be cleaner, not sure how to go about it though, since line-clamp
obviously only works for lines, and any form of max-width: X
didn't work either (at least with my CSS).
Since we cannot reasonably add support for a resizable sidebar to see the playlist names, one option would be to add an on-hover tooltip to see the playlist name.