Skip to content

Commit e52d425

Browse files
Merge pull request #302 from 1Panel-dev/fix-bugs
前端样式优化
2 parents e543acd + 82d9363 commit e52d425

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed

ui/src/components/ai-chat/ParagraphSourceDialog.vue

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
v-model="dialogVisible"
66
destroy-on-close
77
append-to-body
8+
align-center
89
>
910
<div class="paragraph-source-height">
1011
<el-scrollbar>
@@ -63,7 +64,7 @@
6364
</el-dialog>
6465
</template>
6566
<script setup lang="ts">
66-
import { ref, watch, nextTick } from 'vue'
67+
import { ref, watch, onBeforeUnmount } from 'vue'
6768
import { cloneDeep } from 'lodash'
6869
import { arraySort } from '@/utils/utils'
6970
const emit = defineEmits(['refresh'])
@@ -86,12 +87,15 @@ const open = (data: any, id?: string) => {
8687
detail.value.paragraph_list = arraySort(detail.value.paragraph_list, 'similarity', true)
8788
dialogVisible.value = true
8889
}
89-
90+
onBeforeUnmount(() => {
91+
dialogVisible.value = false
92+
})
9093
defineExpose({ open })
9194
</script>
9295
<style lang="scss">
9396
.paragraph-source {
9497
padding: 0;
98+
9599
.el-dialog__header {
96100
padding: 24px 24px 0 24px;
97101
}
@@ -102,4 +106,9 @@ defineExpose({ open })
102106
height: calc(100vh - 260px);
103107
}
104108
}
109+
@media only screen and (max-width: 768px) {
110+
.paragraph-source {
111+
width: 90% !important;
112+
}
113+
}
105114
</style>

ui/src/views/application-overview/component/EditAvatarDialog.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
accept="image/*"
3636
:on-change="onChange"
3737
>
38-
<el-button icon="Upload">上传</el-button>
38+
<el-button icon="Upload" :disabled="radioType !== 'custom'">上传</el-button>
3939
</el-upload>
4040
</div>
4141
<div class="el-upload__tip info mt-16">

ui/src/views/application/components/ParamSettingDialog.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ defineExpose({ open })
251251
padding: 0 !important;
252252
}
253253
.dialog-max-height {
254-
height: calc(100vh - 180px);
254+
height: 550px;
255255
}
256256
.custom-slider {
257257
.el-input-number.is-without-controls .el-input__wrapper {

0 commit comments

Comments
 (0)