Skip to content

Commit

Permalink
fix link out of bound (#1155)
Browse files Browse the repository at this point in the history
Co-authored-by: marcobottaro <[email protected]>
  • Loading branch information
MarBert and marcobottaro authored Sep 30, 2024
1 parent 4a44693 commit af68449
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/modern-chicken-check.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"nextjs-website": patch
---

Add wordwrap break word to links
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@ import { useTheme } from '@mui/material';
export const Link = ({ title, href, children }: LinkProps<ReactNode>) => {
const { palette } = useTheme();
return (
<a href={href} title={title} style={{ color: palette.primary.main }}>
<a
href={href}
title={title}
style={{ wordWrap: 'break-word', color: palette.primary.main }}
>
{children}
</a>
);
Expand Down

0 comments on commit af68449

Please sign in to comment.