diff --git a/app/soapbox/features/status/components/card.js b/app/soapbox/features/status/components/card.js index f49df788e..e08f1f870 100644 --- a/app/soapbox/features/status/components/card.js +++ b/app/soapbox/features/status/components/card.js @@ -166,7 +166,7 @@ export default class Card extends React.PureComponent { const provider = card.get('provider_name').length === 0 ? decodeIDNA(getHostname(card.get('url'))) : card.get('provider_name'); const interactive = card.get('type') !== 'link'; const horizontal = (!compact && cardWidth > cardHeight && (cardWidth + 100 >= width)) || interactive || embedded; - const className = classnames('status-card', { horizontal, compact, interactive }); + const className = classnames('status-card', { horizontal, compact, interactive }, `status-card--${card.get('type')}`); const title = interactive ? {card.get('title')} : {card.get('title')}; const ratio = this.getRatio(card); const height = (compact && !embedded) ? (width / (16 / 9)) : (width / ratio); diff --git a/app/styles/components/status.scss b/app/styles/components/status.scss index 3378e42cc..52cfbdf47 100644 --- a/app/styles/components/status.scss +++ b/app/styles/components/status.scss @@ -605,10 +605,6 @@ a.status-card { width: 100%; } - .status-card__image-image { - border-radius: 4px 4px 0 0; - } - .status-card__title { white-space: inherit; } @@ -637,6 +633,18 @@ a.status-card.compact:hover { background-position: center center; } +@media (max-width: 600px) { + .status-card--link { + flex-direction: column; + + .status-card__image { + width: 100%; + height: 200px; + flex: none; + } + } +} + .status__favicon { width: 16px; height: 16px;