|
|
@ -42,6 +42,7 @@ const deleteAlbum = async (e) => { |
|
|
|
</script> |
|
|
|
</script> |
|
|
|
|
|
|
|
|
|
|
|
<template> |
|
|
|
<template> |
|
|
|
|
|
|
|
<div class="relative w-full"> |
|
|
|
<Link :href="'/album/' + props.album.uuid" :class="{ |
|
|
|
<Link :href="'/album/' + props.album.uuid" :class="{ |
|
|
|
'border-r': (props.index + 1) % props.columns != 0, |
|
|
|
'border-r': (props.index + 1) % props.columns != 0, |
|
|
|
'border-b': props.index < props.length - props.columns, |
|
|
|
'border-b': props.index < props.length - props.columns, |
|
|
@ -51,14 +52,6 @@ const deleteAlbum = async (e) => { |
|
|
|
class="group relative w-full overflow-hidden border-white hover:scale-[1.003] flex items-center bg-black/90"> |
|
|
|
class="group relative w-full overflow-hidden border-white hover:scale-[1.003] flex items-center bg-black/90"> |
|
|
|
<div class="hidden absolute left-0 right-0 top-0 p-2 group-hover:flex justify-between"> |
|
|
|
<div class="hidden absolute left-0 right-0 top-0 p-2 group-hover:flex justify-between"> |
|
|
|
<div class="flex items-center"> |
|
|
|
<div class="flex items-center"> |
|
|
|
<div class="relative"> |
|
|
|
|
|
|
|
<button @click="(e) => { Utils.Prevent(e); albumState.edit = !albumState.edit; }" class="bg-black/50 p-1 rounded-md mr-2"><img src="/icons/modify.svg" class="h-6 invert"></button> |
|
|
|
|
|
|
|
<!-- <Edit v-if="albumState.edit" |
|
|
|
|
|
|
|
@close="() => albumState.edit = false" |
|
|
|
|
|
|
|
:album="props.album" |
|
|
|
|
|
|
|
:class="'absolute left-0 top-full mt-2'" |
|
|
|
|
|
|
|
/> --> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<button @click="deleteAlbum" class="bg-red-600 p-1 rounded-md"><img src="/icons/delete.png" class="h-6 invert"></button> |
|
|
|
<button @click="deleteAlbum" class="bg-red-600 p-1 rounded-md"><img src="/icons/delete.png" class="h-6 invert"></button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -66,6 +59,7 @@ const deleteAlbum = async (e) => { |
|
|
|
<p class="laptop:text-sm text-xs text-white bg-black/30 p-1 px-3 rounded">{{ props.album.name }}</p> |
|
|
|
<p class="laptop:text-sm text-xs text-white bg-black/30 p-1 px-3 rounded">{{ props.album.name }}</p> |
|
|
|
<p class="laptop:text-sm text-xs text-white bg-black/30 p-1 px-3 rounded">publier par {{ props.album.user.name }}</p> |
|
|
|
<p class="laptop:text-sm text-xs text-white bg-black/30 p-1 px-3 rounded">publier par {{ props.album.user.name }}</p> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<img :src="props.album.image" class="w-full bg-white"> |
|
|
|
<img :src="Utils.DownloadUrl(props.album.image)" class="w-full bg-white"> |
|
|
|
</Link> |
|
|
|
</Link> |
|
|
|
|
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</template> |