Skip to content

Commit

Permalink
style: Break words in chart header
Browse files Browse the repository at this point in the history
  • Loading branch information
bprusinowski committed Feb 1, 2024
1 parent 79ee22a commit 1b32081
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions app/configurator/components/annotators.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,11 @@ export const Title = (props: Props) => {
variant="h2"
className={clsx(classes.text, className)}
onClick={onClick}
sx={{ color: text ? text : getEmptyColor(lighterColor), ...sx }}
sx={{
color: text ? text : getEmptyColor(lighterColor),
wordBreak: "break-word",
...sx,
}}
>
{text ? text : <Trans id="annotation.add.title">[ Title ]</Trans>}
</Typography>
Expand All @@ -68,7 +72,11 @@ export const Description = (props: Props) => {
variant="body1"
className={clsx(classes.text, className)}
onClick={onClick}
sx={{ color: text ? text : getEmptyColor(lighterColor), ...sx }}
sx={{
color: text ? text : getEmptyColor(lighterColor),
wordBreak: "break-word",
...sx,
}}
>
{text ? (
text
Expand Down

0 comments on commit 1b32081

Please sign in to comment.