Merge branch 'status-card-fix' into 'develop'

Fix link previews in statuses

Closes #1158

See merge request soapbox-pub/soapbox!1867
This commit is contained in:
Alex Gleason 2022-11-04 16:38:04 +00:00
commit 043458c626
4 changed files with 4 additions and 4 deletions

View file

@ -116,7 +116,7 @@ const QuotedStatus: React.FC<IQuotedStatus> = ({ status, onCancel, compose }) =>
collapsable collapsable
/> />
{(status.media_attachments.size > 0) && ( {(status.card || status.media_attachments.size > 0) && (
<StatusMedia <StatusMedia
status={status} status={status}
muted={compose} muted={compose}

View file

@ -372,7 +372,7 @@ const Status: React.FC<IStatus> = (props) => {
collapsable collapsable
/> />
{(quote || actualStatus.media_attachments.size > 0) && ( {(quote || actualStatus.card || actualStatus.media_attachments.size > 0) && (
<Stack space={4}> <Stack space={4}>
<StatusMedia <StatusMedia
status={actualStatus} status={actualStatus}

View file

@ -103,7 +103,7 @@ const DetailedStatus: React.FC<IDetailedStatus> = ({
<Stack space={4}> <Stack space={4}>
<StatusContent status={actualStatus} /> <StatusContent status={actualStatus} />
{(quote || actualStatus.media_attachments.size > 0) && ( {(quote || actualStatus.card || actualStatus.media_attachments.size > 0) && (
<Stack space={4}> <Stack space={4}>
<StatusMedia <StatusMedia
status={actualStatus} status={actualStatus}

View file

@ -102,7 +102,7 @@
} }
.status-card { .status-card {
@apply flex text-sm border border-solid border-gray-200 dark:border-gray-800 rounded-lg text-gray-800 dark:text-gray-200 mt-3 min-h-[150px] no-underline overflow-hidden; @apply flex text-sm border border-solid border-gray-200 dark:border-gray-800 rounded-lg text-gray-800 dark:text-gray-200 min-h-[150px] no-underline overflow-hidden;
} }
a.status-card { a.status-card {