This commit is contained in:
wxd
2024-10-20 15:58:29 +08:00
parent 16df45d4be
commit 269f34838b
8 changed files with 45 additions and 32 deletions

View File

@@ -4,6 +4,7 @@
<a-popover v-if="isCanvas">
<template #content>
<img style="width: 10rem;height: 10rem;object-fit: contain;" :src="item.img" alt="">
<span style="text-align: center;">{{ $t('Generate.referenceImage') }}</span>
</template>
<span v-if="item?.label">{{ item?.label }}</span>
<span v-else>{{ item.name }}</span>
@@ -200,18 +201,26 @@ import { message, Upload, Modal } from "ant-design-vue";
margin-right: 2rem;
>div{
width: calc(13rem*1.2);
// display: flex;
display: block;
width: calc(13rem*1.2);
border-radius: calc(1rem*1.2);
margin: 0;
border: 2px solid;
cursor: pointer;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
padding: 0 calc(1rem*1.2);
text-align: center;
display: flex;
justify-content: space-around;
> span{
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
>i{
justify-content: center;
position: relative;
}
}
ul{
position: absolute;
@@ -256,9 +265,5 @@ import { message, Upload, Modal } from "ant-design-vue";
}
}
}
.generalMenu_printModel_upload{
>i{
justify-content: center;
}
}
</style>