Use attachment preview urls

This changes the preview urls to use the concrete attachment ids. This
way browsers have it easier to switch the preview image when the
attachment position is changed.
This commit is contained in:
Eike Kettner
2020-11-09 14:29:52 +01:00
parent 8c08bf233d
commit 67e8994aec
2 changed files with 16 additions and 3 deletions

View File

@ -238,7 +238,7 @@ viewItem cfg settings item =
div [ class "image" ]
[ img
[ class "preview-image"
, src (Api.itemPreviewURL item.id)
, src (Api.itemPreviewURL item)
, Data.UiSettings.cardPreviewSize settings
]
[]