mirror of
https://github.com/sct/overseerr.git
synced 2025-09-17 17:24:35 +02:00
fix(ui): gracefully handle lengthy titles & long words in overviews (#1338)
This commit is contained in:
@@ -221,7 +221,16 @@ const TitleCard: React.FC<TitleCardProps> = ({
|
|||||||
>
|
>
|
||||||
{year && <div className="text-sm">{year}</div>}
|
{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}
|
{title}
|
||||||
</h1>
|
</h1>
|
||||||
<div
|
<div
|
||||||
@@ -236,6 +245,7 @@ const TitleCard: React.FC<TitleCardProps> = ({
|
|||||||
display: '-webkit-box',
|
display: '-webkit-box',
|
||||||
overflow: 'hidden',
|
overflow: 'hidden',
|
||||||
WebkitBoxOrient: 'vertical',
|
WebkitBoxOrient: 'vertical',
|
||||||
|
wordBreak: 'break-word',
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{summary}
|
{summary}
|
||||||
|
Reference in New Issue
Block a user