fix(ui): gracefully handle lengthy titles & long words in overviews (#1338)

pull/1334/head
TheCatLady 4 years ago committed by GitHub
parent 55b18f0023
commit d8bcb99b2f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -221,7 +221,16 @@ const TitleCard: React.FC<TitleCardProps> = ({
>
{year && <div className="text-sm">{year}</div>}
<h1 className="text-xl leading-tight whitespace-normal">
<h1
className="text-xl leading-tight whitespace-normal"
style={{
WebkitLineClamp: 3,
display: '-webkit-box',
overflow: 'hidden',
WebkitBoxOrient: 'vertical',
wordBreak: 'break-word',
}}
>
{title}
</h1>
<div
@ -236,6 +245,7 @@ const TitleCard: React.FC<TitleCardProps> = ({
display: '-webkit-box',
overflow: 'hidden',
WebkitBoxOrient: 'vertical',
wordBreak: 'break-word',
}}
>
{summary}

Loading…
Cancel
Save