Wrap full link preview content in dir=auto

This commit is contained in:
Jamie Kyle 2023-07-27 10:00:56 -07:00 committed by GitHub
parent 33d80f1274
commit 2e25967756
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -1189,7 +1189,7 @@ export class Message extends React.PureComponent<Props, State> {
onClick={onPreviewImageClick}
/>
) : null}
<div className="module-message__link-preview__content">
<div dir="auto" className="module-message__link-preview__content">
{first.image &&
first.domain &&
previewHasImage &&
@ -1219,7 +1219,6 @@ export class Message extends React.PureComponent<Props, State> {
</div>
) : null}
<div
dir="auto"
className={classNames(
'module-message__link-preview__text',
previewHasImage && !isFullSizeImage

View file

@ -73,6 +73,7 @@ export function StagedLinkPreview({
return (
<div
dir="auto"
className={classNames(
getClassName(''),
!isLoaded ? getClassName('--is-loading') : null