Commit c7261a61 authored by Dazzle Wu's avatar Dazzle Wu

chore: ui调整

parent 1da54998
...@@ -168,11 +168,16 @@ function onImageLoaded(index: number) { ...@@ -168,11 +168,16 @@ function onImageLoaded(index: number) {
@click="handleClickImage(image)" @click="handleClickImage(image)"
> >
<img class="h-full w-full object-contain" :src="image.imageUrl" @load="onImageLoaded(index)" /> <img class="h-full w-full object-contain" :src="image.imageUrl" @load="onImageLoaded(index)" />
<div <n-popover trigger="hover" placement="bottom">
class="absolute bottom-0 h-5 w-full truncate bg-gradient-to-t from-gray-600 px-1 text-xs leading-5 text-white" <template #trigger>
> <div
{{ image.imageName }} class="absolute bottom-0 line-clamp-1 h-5 w-full break-all bg-gradient-to-t from-gray-600 px-1 text-xs leading-5 text-white"
</div> >
{{ image.imageName }}
</div>
</template>
<span class="text-xs">{{ image.imageName }}</span>
</n-popover>
<div <div
v-if="currentBackgroundImageType === BackgroundImageType.PERSON" v-if="currentBackgroundImageType === BackgroundImageType.PERSON"
class="absolute right-1 top-1 hidden h-7 w-7 cursor-pointer items-center justify-center rounded-md bg-black/40 p-1 group-hover:flex" class="absolute right-1 top-1 hidden h-7 w-7 cursor-pointer items-center justify-center rounded-md bg-black/40 p-1 group-hover:flex"
...@@ -180,6 +185,11 @@ function onImageLoaded(index: number) { ...@@ -180,6 +185,11 @@ function onImageLoaded(index: number) {
> >
<CustomIcon icon="mi:delete" class="text-lg text-white" /> <CustomIcon icon="mi:delete" class="text-lg text-white" />
</div> </div>
<CustomIcon
v-if="digitalCreationStore.backgroundImageUrl === image.imageUrl"
icon="si-glyph:checked"
class="text-blue absolute left-0 top-0 text-xs"
/>
</div> </div>
</n-spin> </n-spin>
</n-gi> </n-gi>
......
...@@ -26,3 +26,10 @@ const text = computed({ ...@@ -26,3 +26,10 @@ const text = computed({
/> />
</div> </div>
</template> </template>
<style lang="scss" scoped>
:deep(.n-input.n-input--textarea .n-input-word-count) {
right: 0;
bottom: -20px;
}
</style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment