feat: lazy load avatar

pull/78/head^2
三咲智子 2022-11-25 16:07:09 +08:00
rodzic 2f1c890623
commit e7fd9be93d
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 69992F2250DFD93E
2 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -7,5 +7,5 @@ defineProps<{
</script>
<template>
<img :src="account.avatar" :alt="account.username" rounded-full bg-gray:10>
<img :src="account.avatar" :alt="account.username" loading="lazy" rounded-full bg-gray:10>
</template>

Wyświetl plik

@ -80,7 +80,7 @@ const timeago = useTimeAgo(() => status.createdAt, {
</div>
<div flex gap-4>
<AccountAvatar mt1 w-12 h-12 :account="status.account" />
<div flex="~ col auto">
<div flex="~ col 1">
<div flex>
<StatusAccountDetails :account="status.account" />
<div flex-auto />