fix long zap comment text overflow (#344)

This commit is contained in:
Sam Samskies 2023-02-21 10:57:53 -10:00 committed by GitHub
parent 88dc0647d7
commit e0dea32d6f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 1 deletions

View File

@ -92,6 +92,10 @@
line-height: 17px;
}
.reactions-item .zap-comment {
width: 332px;
}
@media (max-width: 520px) {
.reactions-view .tab.disabled {
display: none;

View File

@ -113,7 +113,11 @@ const Reactions = ({ show, setShow, positive, negative, reposts, zaps }: Reactio
<ProfileImage
autoWidth={false}
pubkey={z.anonZap ? "" : z.zapper}
subHeader={<>{z.content}</>}
subHeader={
<div className="f-ellipsis zap-comment" title={z.content}>
{z.content}
</div>
}
overrideUsername={z.anonZap ? formatMessage({ defaultMessage: "Anonymous" }) : undefined}
/>
</div>