Skip to content

Commit

Permalink
🪅 add word break (#3326)
Browse files Browse the repository at this point in the history
* add word break

* add word-wrap for title

Co-authored-by: Pasha Hliebov <p.hliebov@bsg.world>
  • Loading branch information
Palllke2015 and PHliebov authored Jul 22, 2022
1 parent 2a055de commit 639fa95
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ export const MarkdownPreviewStyles = createGlobalStyle<MarkdownPreviewStylesProp
line-height: 1.5;
font-weight: 400;
color: ${normalColor};
word-break: break-word;
}
.markdown-preview li {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export const CandidacyDetails = ({ candidate }: Props) => {
return (
<Details gap={24}>
<RowGapBlock gap={4}>
<h4>{candidate.info.title}</h4>
<Title>{candidate.info.title}</Title>
{candidate.info.bannerUri && <HeaderImage src={candidate.info.bannerUri} />}
</RowGapBlock>
<RowGapBlock gap={4}>
Expand Down Expand Up @@ -49,3 +49,7 @@ const Details = styled(RowGapBlock)`
const HeaderImage = styled.img`
width: 100%;
`

const Title = styled.h4`
word-break: break-word;
`

1 comment on commit 639fa95

@vercel
Copy link

@vercel vercel bot commented on 639fa95 Jul 22, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

pioneer-2 – ./

pioneer-2-joystream.vercel.app
pioneer-2.vercel.app
pioneer-2-git-dev-joystream.vercel.app

Please sign in to comment.