Wrap link preview description for long words (#9662)
This commit is contained in:
parent
5ed76b9645
commit
eb9fd85151
2 changed files with 28 additions and 0 deletions
|
@ -1082,6 +1082,9 @@ $message-padding-horizontal: 12px;
|
||||||
display: -webkit-box;
|
display: -webkit-box;
|
||||||
-webkit-line-clamp: 5;
|
-webkit-line-clamp: 5;
|
||||||
-webkit-box-orient: vertical;
|
-webkit-box-orient: vertical;
|
||||||
|
overflow-wrap: break-word;
|
||||||
|
word-wrap: break-word;
|
||||||
|
word-break: break-word;
|
||||||
|
|
||||||
@include mixins.light-theme {
|
@include mixins.light-theme {
|
||||||
color: variables.$color-gray-90;
|
color: variables.$color-gray-90;
|
||||||
|
|
|
@ -916,6 +916,31 @@ LinkPreviewInGroup.args = {
|
||||||
conversationType: 'group',
|
conversationType: 'group',
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export const LinkPreviewWithLongWord = Template.bind({});
|
||||||
|
LinkPreviewWithLongWord.args = {
|
||||||
|
previews: [
|
||||||
|
{
|
||||||
|
domain: 'signal.org',
|
||||||
|
image: fakeAttachment({
|
||||||
|
contentType: IMAGE_PNG,
|
||||||
|
fileName: 'the-sax.png',
|
||||||
|
height: 240,
|
||||||
|
url: pngUrl,
|
||||||
|
width: 320,
|
||||||
|
}),
|
||||||
|
isStickerPack: false,
|
||||||
|
isCallLink: false,
|
||||||
|
title: 'Signal',
|
||||||
|
description: `Say "hello" to a ${'Different'.repeat(10)} messaging experience.`,
|
||||||
|
url: 'https://www.signal.org',
|
||||||
|
date: new Date(2020, 2, 10).valueOf(),
|
||||||
|
},
|
||||||
|
],
|
||||||
|
status: 'sent',
|
||||||
|
text: 'Be sure to look at https://www.signal.org',
|
||||||
|
conversationType: 'group',
|
||||||
|
};
|
||||||
|
|
||||||
export const LinkPreviewWithQuote = Template.bind({});
|
export const LinkPreviewWithQuote = Template.bind({});
|
||||||
LinkPreviewWithQuote.args = {
|
LinkPreviewWithQuote.args = {
|
||||||
quote: {
|
quote: {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue