mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-18 21:45:31 +09:00
fix(app): keep embed icons mounted so they reserve space while loading (#1757)
This commit is contained in:
1 parent
ce41960fcd
commit
362a89f2b2
2 files changed
+8
-4
No files matched your search
@@ -113,6 +113,10 @@
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
.embedIconPending {
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
.embedTitle {
|
||||
font-size: 1em;
|
||||
font-weight: 600;
|
||||
|
||||
@@ -37,10 +37,10 @@ export const EmbedAuthorComponent: FC<{author?: EmbedAuthor}> = observer(({autho
|
||||
if (!author) return null;
|
||||
return (
|
||||
<div className={styles.embedAuthor} data-flx="channel.embeds.embed.embed-author-component.embed-author">
|
||||
{iconSrc && iconLoaded && (
|
||||
{iconSrc && (
|
||||
<img
|
||||
alt=""
|
||||
className={styles.embedAuthorIcon}
|
||||
className={clsx(styles.embedAuthorIcon, !iconLoaded && styles.embedIconPending)}
|
||||
src={iconSrc}
|
||||
width={24}
|
||||
height={24}
|
||||
@@ -190,10 +190,10 @@ export const EmbedFooterComponent: FC<{
|
||||
className={clsx(styles.embedFooter, footer?.proxy_icon_url && styles.hasThumbnail)}
|
||||
data-flx="channel.embeds.embed.embed-footer-component.embed-footer"
|
||||
>
|
||||
{iconSrc && iconLoaded && (
|
||||
{iconSrc && (
|
||||
<img
|
||||
alt=""
|
||||
className={styles.embedFooterIcon}
|
||||
className={clsx(styles.embedFooterIcon, !iconLoaded && styles.embedIconPending)}
|
||||
src={iconSrc}
|
||||
width={20}
|
||||
height={20}
|
||||
|
||||
Reference in new issue
Block a user