Skip to content

Commit

Permalink
fix(ClassCard): use hyphens for long activity names
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrianAndersen committed Mar 2, 2024
1 parent 4b24938 commit 94c2402
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/schedule/class/ClassCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -132,11 +132,12 @@ const ClassCard = ({
},
}}
>
<Box>
<Box sx={{ maxWidth: "83%" }}>
<Typography
sx={{
textDecoration: isInThePast || _class.isCancelled ? "line-through" : "none",
fontSize: "1.05rem",
hyphens: "auto",
...(showSelected ? { fontWeight: "bold" } : {}),
}}
>
Expand Down Expand Up @@ -209,7 +210,7 @@ const ClassCard = ({
</Box>
</Collapse>
</Box>
<Box sx={{ display: "flex", flexDirection: "column", justifyContent: "space-between", ml: 0.5 }}>
<Box sx={{ display: "flex", flexDirection: "column", justifyContent: "space-between" }}>
{_class.isCancelled ? (
<Tooltip title={"Timen er avlyst"}>
<Badge
Expand Down

0 comments on commit 94c2402

Please sign in to comment.