fix: improve description display in RelaySimpleInfo component
This commit is contained in:
parent
2662373704
commit
f04981f5b9
1 changed files with 10 additions and 1 deletions
|
|
@ -32,7 +32,16 @@ export default function RelaySimpleInfo({
|
||||||
</div>
|
</div>
|
||||||
{relayInfo && <SaveRelayDropdownMenu urls={[relayInfo.url]} />}
|
{relayInfo && <SaveRelayDropdownMenu urls={[relayInfo.url]} />}
|
||||||
</div>
|
</div>
|
||||||
{!!relayInfo?.description && <div className="line-clamp-3">{relayInfo.description}</div>}
|
{!!relayInfo?.description && (
|
||||||
|
<div
|
||||||
|
className="line-clamp-3 break-words whitespace-pre-wrap"
|
||||||
|
style={{
|
||||||
|
overflowWrap: 'anywhere'
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
{relayInfo.description}
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
{!!users?.length && (
|
{!!users?.length && (
|
||||||
<div className="flex items-center gap-2">
|
<div className="flex items-center gap-2">
|
||||||
<div className="text-muted-foreground">{t('Favorited by')} </div>
|
<div className="text-muted-foreground">{t('Favorited by')} </div>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue