Skip to content

Commit

Permalink
Fix playlist card text overflow on Spotify V1.2.34
Browse files Browse the repository at this point in the history
  • Loading branch information
Bergbok committed Apr 6, 2024
1 parent cb63ca7 commit ff22159
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 7 deletions.
2 changes: 1 addition & 1 deletion CustomApps/playlist-tags/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "playlist-tags",
"version": "1.6.1",
"version": "1.6.2",
"private": true,
"scripts": {
"build": "spicetify-creator",
Expand Down
25 changes: 19 additions & 6 deletions CustomApps/playlist-tags/src/components/spotify_card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,25 @@ function SpotifyCard(props: SpotifyCardProps): React.ReactElement<HTMLDivElement
isCircular={type === "artist"}/>
)}
renderSubHeaderContent={() => (
<TextComponent
as="div"
variant="mesto"
semanticColor="textSubdued"
children={he.decode(subheader)}
style={{ overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" }}/>
<React.Fragment>
<style>
{`
.playlist-text {
width: 169px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
overflow-wrap: break-word;
}
`}
</style>
<TextComponent
as="div"
variant="mesto"
semanticColor="textSubdued"
children={he.decode(subheader)}
className="playlist-text"/>
</React.Fragment>
)}
uri={uri}/>
</ContextMenu>
Expand Down

0 comments on commit ff22159

Please sign in to comment.