Skip to content

Commit 6c0b084

Browse files
authored
[6.x] Don't force an SVG aspect ratio in the asset preview thumbnails (#14107)
Don't force an SVG aspect ratio in the asset preview thumbnails
1 parent 5864b6f commit 6c0b084

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

resources/js/components/assets/Editor/Editor.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,13 +76,13 @@
7676
<div v-else-if="asset.isSvg" class="flex h-full w-full flex-col shadow-ui-xl">
7777
<div class="grid grid-cols-3 gap-1">
7878
<div class="flex items-center justify-center p-3 aspect-square" :class="{ 'bg-checkerboard before:opacity-100': showCheckerboard }">
79-
<img :src="asset.url" class="asset-thumb relative z-10 size-4" />
79+
<img :src="asset.url" class="asset-thumb relative z-10 w-4" />
8080
</div>
8181
<div class="flex items-center justify-center p-3 aspect-square" :class="{ 'bg-checkerboard before:opacity-100': showCheckerboard }">
82-
<img :src="asset.url" class="asset-thumb relative z-10 size-12" />
82+
<img :src="asset.url" class="asset-thumb relative z-10 w-12" />
8383
</div>
8484
<div class="flex items-center justify-center p-3 aspect-square" :class="{ 'bg-checkerboard before:opacity-100': showCheckerboard }">
85-
<img :src="asset.url" class="asset-thumb relative z-10 size-24" />
85+
<img :src="asset.url" class="asset-thumb relative z-10 w-24" />
8686
</div>
8787
</div>
8888
<div class="h-full min-h-0 mt-1 flex items-center justify-center p-3 aspect-square" :class="{ 'bg-checkerboard before:opacity-100': showCheckerboard }">

0 commit comments

Comments
 (0)