Skip to content

Commit

Permalink
adjusting min-width of artist name chips so they all look consistentl…
Browse files Browse the repository at this point in the history
…y wide regardless how wide or thin the letter is
  • Loading branch information
sam9116 committed May 11, 2024
1 parent cada9e4 commit 843b429
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ArtistsCarrousel.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,15 @@ function SwipeableTextMobileStepper({ groupedNames, handleArtistClick }) {
placement="right-start"
open={toltipOpen === letter}
>
<Chip key={letter + "chip"} sx={{ background: "limegreen" }} label={letter} color="success" onClick={() => handleLetterClick(letter)} />
<Chip key={letter + "chip"} sx={{ background: "limegreen", minWidth: "32px" }} label={letter} color="success" onClick={() => handleLetterClick(letter)} />
</Tooltip>
)}
</Stack>
);
});

return (
<Stack spacing={2} direction={'row'} useFlexGap flexWrap="wrap" sx={{ padding:"10px", justifyContent:"center"}}>
<Stack spacing={2} direction={'row'} useFlexGap flexWrap="wrap" sx={{ padding: "10px", justifyContent: "center" }}>
{artistChipsByChunks}
</Stack>
);
Expand Down

0 comments on commit 843b429

Please sign in to comment.