【优化】调整 image card 尺寸

This commit is contained in:
cherishsince 2024-05-27 10:47:43 +08:00
parent 959ee90810
commit fd4ef4b172
2 changed files with 16 additions and 11 deletions

View File

@ -3,20 +3,20 @@
v-model="showDrawer" v-model="showDrawer"
title="图片详细" title="图片详细"
@close="handlerDrawerClose" @close="handlerDrawerClose"
custom-class="drawer-class"
> >
<!-- 图片 -->
<div class="item"> <div class="item">
<div class="header"> <div class="header">
<div>图片</div> <div>图片</div>
<div> <div>
<el-button class="btn" text :icon="Download" />
<el-button class="btn" text :icon="Delete" />
<el-button class="btn" text :icon="More" @click="handlerTaskDetail" />
</div> </div>
</div> </div>
<div class="body"> <div class="body">
<ImageTaskCard :image-detail="imageDetail" /> <ImageTaskCard :image-detail="imageDetail" />
</div> </div>
</div> </div>
<!-- 提示词 -->
<div class="item"> <div class="item">
<div class="tip">提示词</div> <div class="tip">提示词</div>
<div class="body"> <div class="body">
@ -81,24 +81,29 @@ onMounted(async () => {
.item { .item {
margin-bottom: 20px; margin-bottom: 20px;
width: 100%;
overflow: hidden;
word-wrap: break-word;
.header { .header {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
justify-content: space-between; justify-content: space-between;
font-size: 16px; }
.tip {
font-weight: bold; font-weight: bold;
font-size: 16px;
} }
.body { .body {
margin-top: 10px; margin-top: 10px;
color: #616161; color: #616161;
}
}
.taskImage { .taskImage {
border-radius: 10px; border-radius: 10px;
} }
}
}
</style> </style>

View File

@ -43,7 +43,7 @@ const emits = defineEmits(['onBtnClick'])
<style scoped lang="scss"> <style scoped lang="scss">
.image-card { .image-card {
width: 360px; width: 320px;
border-radius: 10px; border-radius: 10px;
.image-operation { .image-operation {