use variant thumb

This commit is contained in:
2023-07-19 15:53:58 +10:00
parent 048d3af39b
commit 67044b7cf9

View File

@@ -230,7 +230,12 @@
<div <div
class="flex text-xs border-b border-gray-3 pb-4"> class="flex text-xs border-b border-gray-3 pb-4">
<img <img
:src="lastSelected.url" :src="
mediaGetVariantUrl(
lastSelected,
'thumb',
)
"
class="max-h-20 max-w-20 mr-2" /> class="max-h-20 max-w-20 mr-2" />
<div class="flex flex-col"> <div class="flex flex-col">
<p class="m-0 text-bold"> <p class="m-0 text-bold">
@@ -342,7 +347,7 @@
item.url.length > 0 item.url.length > 0
? `url('${mediaGetVariantUrl( ? `url('${mediaGetVariantUrl(
item, item,
'small', 'thumb',
)}')` )}')`
: 'none', : 'none',
backgroundColor: backgroundColor: