We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe47c92 commit ddd4300Copy full SHA for ddd4300
1 file changed
resources/js/components/fieldtypes/assets/AssetsIndexFieldtype.vue
@@ -1,6 +1,6 @@
1
<template>
2
<div class="flex text-2xs gap-2">
3
- <a v-for="asset in value.assets.splice(0, 5)" :key="asset.id" :href="asset.url" target="_blank">
+ <a v-for="asset in value.assets.slice(0, value.total > 6 ? 5 : 6)" :key="asset.id" :href="asset.url" target="_blank">
4
<asset-thumbnail :asset="asset" class="-my-1 h-8 max-w-3xs" />
5
</a>
6
<span
0 commit comments