|
|
@ -60,18 +60,17 @@ onKeyDown('Escape', () => { |
|
|
|
</script> |
|
|
|
</script> |
|
|
|
|
|
|
|
|
|
|
|
<template> |
|
|
|
<template> |
|
|
|
<div ref="dropZoneRef" class="nc-attachment-cell flex-1 color-transition flex items-center justify-between gap-1"> |
|
|
|
<div ref="dropZoneRef" class="nc-attachment-cell relative flex-1 color-transition flex items-center justify-between gap-1"> |
|
|
|
<Carousel /> |
|
|
|
<Carousel /> |
|
|
|
|
|
|
|
|
|
|
|
<template v-if="!isReadonly && !dragging && isOverDropZone"> |
|
|
|
<template v-if="!isReadonly && !dragging && isOverDropZone"> |
|
|
|
<div |
|
|
|
<div |
|
|
|
class="w-full h-full flex items-center justify-center p-1 rounded gap-1 bg-gradient-to-t from-primary/10 via-primary/25 to-primary/10 !text-primary" |
|
|
|
class="z-100 absolute top-0 bottom-0 left-0 right-0 w-full h-full flex items-center justify-center p-1 rounded gap-1 bg-gray-700/75 text-white" |
|
|
|
> |
|
|
|
> |
|
|
|
<MaterialSymbolsFileCopyOutline class="text-pink-500" /> Drop here |
|
|
|
<MaterialSymbolsFileCopyOutline class="text-pink-500" /> Drop here |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
|
<template v-else> |
|
|
|
|
|
|
|
<div |
|
|
|
<div |
|
|
|
v-if="!isReadonly" |
|
|
|
v-if="!isReadonly" |
|
|
|
:class="{ 'mx-auto px-4': !visibleItems.length }" |
|
|
|
:class="{ 'mx-auto px-4': !visibleItems.length }" |
|
|
@ -95,13 +94,13 @@ onKeyDown('Escape', () => { |
|
|
|
<div |
|
|
|
<div |
|
|
|
ref="sortableRef" |
|
|
|
ref="sortableRef" |
|
|
|
:class="{ dragging }" |
|
|
|
:class="{ dragging }" |
|
|
|
class="h-full w-full flex flex-wrap flex-col gap-2 content-start py-1 overflow-x-scroll overflow-y-hidden scrollbar-thin-primary" |
|
|
|
class="flex gap-2 py-1 overflow-x-scroll overflow-y-hidden scrollbar-thin-primary" |
|
|
|
> |
|
|
|
> |
|
|
|
<div |
|
|
|
<div |
|
|
|
v-for="(item, i) of visibleItems" |
|
|
|
v-for="(item, i) of visibleItems" |
|
|
|
:id="item.url" |
|
|
|
:id="item.url" |
|
|
|
:key="item.url || item.title" |
|
|
|
:key="item.url || item.title" |
|
|
|
class="nc-attachment flex-auto flex items-center justify-center w-[45px] border-1" |
|
|
|
class="nc-attachment flex-auto flex items-center justify-center min-w-[45px] w-[45px] border-1" |
|
|
|
> |
|
|
|
> |
|
|
|
<a-tooltip placement="bottom"> |
|
|
|
<a-tooltip placement="bottom"> |
|
|
|
<template #title> |
|
|
|
<template #title> |
|
|
@ -132,7 +131,6 @@ onKeyDown('Escape', () => { |
|
|
|
</a-tooltip> |
|
|
|
</a-tooltip> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<Modal /> |
|
|
|
<Modal /> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|