Skip to content

Commit

Permalink
Merge pull request #82 from fuzue/77-fruits-and-vegetable-names-isnt-…
Browse files Browse the repository at this point in the history
…fitting-on-the-box-in-some-resolutions

fix(item): ellipsis text
  • Loading branch information
aivuk authored Aug 30, 2023
2 parents 4d8b62e + ea03e68 commit 28b751e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function Item(props: FoodObject) {
top={0}
fontSize="max(1rem, min(4.5vw, 3rem))"
fontWeight={400}
sx={{ p: "0.25em", transform: "translateY(-20%)" }}
sx={{ p: "0.25em", transform: "translateY(-20%)", overflow: "hidden", textOverflow: "ellipsis" }}
>
{t(props.description[0].name)}
</Typography>
Expand Down

0 comments on commit 28b751e

Please sign in to comment.