mirror of https://github.com/tooot-app/app
Forgiving blurhash
This commit is contained in:
parent
3e3ae67155
commit
e765a8fd7c
|
@ -51,6 +51,7 @@ const AttachmentVideo: React.FC<Props> = ({ sensitiveShown, video }) => {
|
|||
/>
|
||||
<Pressable style={styles.overlay}>
|
||||
{sensitiveShown ? (
|
||||
video.blurhash ? (
|
||||
<Surface
|
||||
style={{
|
||||
width: '100%',
|
||||
|
@ -59,6 +60,7 @@ const AttachmentVideo: React.FC<Props> = ({ sensitiveShown, video }) => {
|
|||
>
|
||||
<Blurhash hash={video.blurhash} />
|
||||
</Surface>
|
||||
) : null
|
||||
) : (
|
||||
<Button
|
||||
type='icon'
|
||||
|
|
|
@ -33,11 +33,11 @@ const TimelineCard: React.FC<Props> = ({ card }) => {
|
|||
if (imageLoaded) {
|
||||
return <Image source={{ uri: card.image }} style={styles.image} />
|
||||
} else {
|
||||
return (
|
||||
return card.blurhash ? (
|
||||
<Surface style={styles.image}>
|
||||
<Blurhash hash={card.blurhash} />
|
||||
</Surface>
|
||||
)
|
||||
) : null
|
||||
}
|
||||
}, [imageLoaded])
|
||||
|
||||
|
|
Loading…
Reference in New Issue