Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3898239ec4 |
2 changed files with 26 additions and 2 deletions
|
|
@ -31,6 +31,7 @@ export const Reply = style({
|
||||||
});
|
});
|
||||||
|
|
||||||
export const ReplyContent = style({
|
export const ReplyContent = style({
|
||||||
|
minWidth: 0,
|
||||||
opacity: config.opacity.P300,
|
opacity: config.opacity.P300,
|
||||||
|
|
||||||
selectors: {
|
selectors: {
|
||||||
|
|
@ -39,3 +40,19 @@ export const ReplyContent = style({
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
export const ReplyText = style({
|
||||||
|
display: '-webkit-box',
|
||||||
|
WebkitBoxOrient: 'vertical',
|
||||||
|
WebkitLineClamp: 2,
|
||||||
|
overflow: 'hidden',
|
||||||
|
minWidth: 0,
|
||||||
|
maxWidth: '100%',
|
||||||
|
overflowWrap: 'anywhere',
|
||||||
|
wordBreak: 'break-word',
|
||||||
|
});
|
||||||
|
|
||||||
|
export const ReplyWrap = style({
|
||||||
|
minWidth: 0,
|
||||||
|
maxWidth: '100%',
|
||||||
|
});
|
||||||
|
|
|
||||||
|
|
@ -101,7 +101,14 @@ export const Reply = as<'div', ReplyProps>(
|
||||||
const bodyJSX = body ? scaleSystemEmoji(trimReplyFromBody(body)) : fallbackBody;
|
const bodyJSX = body ? scaleSystemEmoji(trimReplyFromBody(body)) : fallbackBody;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Box direction="Row" gap="200" alignItems="Center" {...props} ref={ref}>
|
<Box
|
||||||
|
className={css.ReplyWrap}
|
||||||
|
direction="Row"
|
||||||
|
gap="200"
|
||||||
|
alignItems="Center"
|
||||||
|
{...props}
|
||||||
|
ref={ref}
|
||||||
|
>
|
||||||
{threadRootId && (
|
{threadRootId && (
|
||||||
<ThreadIndicator as="button" data-event-id={threadRootId} onClick={onClick} />
|
<ThreadIndicator as="button" data-event-id={threadRootId} onClick={onClick} />
|
||||||
)}
|
)}
|
||||||
|
|
@ -119,7 +126,7 @@ export const Reply = as<'div', ReplyProps>(
|
||||||
onClick={onClick}
|
onClick={onClick}
|
||||||
>
|
>
|
||||||
{replyEvent !== undefined ? (
|
{replyEvent !== undefined ? (
|
||||||
<Text size="T300" truncate>
|
<Text size="T300" className={css.ReplyText}>
|
||||||
{badEncryption ? <MessageBadEncryptedContent /> : bodyJSX}
|
{badEncryption ? <MessageBadEncryptedContent /> : bodyJSX}
|
||||||
</Text>
|
</Text>
|
||||||
) : (
|
) : (
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue