forked from Mirrors/elk
fix(ui): use correct url for timeline image srcset (#296)
This commit is contained in:
parent
d17994338d
commit
2a84bbb3d6
1 changed files with 1 additions and 1 deletions
|
@ -9,7 +9,7 @@ const { attachment } = defineProps<{
|
|||
|
||||
const src = $computed(() => attachment.previewUrl || attachment.url || attachment.remoteUrl!)
|
||||
const srcset = $computed(() => [
|
||||
[src, attachment.meta?.original?.width],
|
||||
[attachment.url, attachment.meta?.original?.width],
|
||||
[attachment.previewUrl, attachment.meta?.small?.width],
|
||||
].filter(([url]) => url).map(([url, size]) => `${url} ${size}w`).join(', '))
|
||||
|
||||
|
|
Loading…
Reference in a new issue