feat: improve attachment display

pull/43/head
Anthony Fu 2022-11-24 12:13:13 +08:00
rodzic dba069f0ef
commit 3ce1eb3537
1 zmienionych plików z 3 dodań i 0 usunięć

Wyświetl plik

@ -23,6 +23,9 @@ export default defineComponent({
isLoaded.value = true
}
img.src = props.src
setTimeout(() => {
isLoaded.value = true
}, 3_000)
if (props.blurhash) {
const pixels = decode(props.blurhash, 32, 32)