Merge branch 'improve-link-previews' into 'develop'
Remove 'file-icon' in empty link preview See merge request soapbox-pub/soapbox!2041
This commit is contained in:
commit
6a612a854a
3 changed files with 3 additions and 12 deletions
|
@ -15,6 +15,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||||
### Changed
|
### Changed
|
||||||
- Posts: letterbox images to 19:6 again.
|
- Posts: letterbox images to 19:6 again.
|
||||||
- Status Info: moved context (repost, pinned) to improve UX.
|
- Status Info: moved context (repost, pinned) to improve UX.
|
||||||
|
- Posts: remove file icon from empty link previews.
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
- Layout: use accent color for "floating action button" (mobile compose button).
|
- Layout: use accent color for "floating action button" (mobile compose button).
|
||||||
|
|
|
@ -153,7 +153,7 @@ const Card: React.FC<ICard> = ({
|
||||||
</Stack>
|
</Stack>
|
||||||
);
|
);
|
||||||
|
|
||||||
let embed: React.ReactNode = '';
|
let embed: React.ReactNode = null;
|
||||||
|
|
||||||
const canvas = (
|
const canvas = (
|
||||||
<Blurhash
|
<Blurhash
|
||||||
|
@ -240,12 +240,6 @@ const Card: React.FC<ICard> = ({
|
||||||
{thumbnail}
|
{thumbnail}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
} else {
|
|
||||||
embed = (
|
|
||||||
<div className='status-card__image status-card__image--empty'>
|
|
||||||
<Icon src={require('@tabler/icons/file-text.svg')} />
|
|
||||||
</div>
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|
|
@ -61,7 +61,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 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 no-underline overflow-hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
a.status-card {
|
a.status-card {
|
||||||
|
@ -95,10 +95,6 @@ a.status-card {
|
||||||
stroke-width: 1px;
|
stroke-width: 1px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&--empty {
|
|
||||||
flex: 0 0 80px;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.status-card.horizontal {
|
.status-card.horizontal {
|
||||||
|
|
Loading…
Reference in a new issue