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>}
|
||||
|
||||
<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}
|
||||
|
Reference in New Issue
Block a user