Skip to content

Commit

Permalink
fix: 样式修复
Browse files Browse the repository at this point in the history
  • Loading branch information
wangdan-fit2cloud committed Apr 28, 2024
1 parent e543acd commit a5d58b7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
13 changes: 11 additions & 2 deletions ui/src/components/ai-chat/ParagraphSourceDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
v-model="dialogVisible"
destroy-on-close
append-to-body
align-center
>
<div class="paragraph-source-height">
<el-scrollbar>
Expand Down Expand Up @@ -63,7 +64,7 @@
</el-dialog>
</template>
<script setup lang="ts">
import { ref, watch, nextTick } from 'vue'
import { ref, watch, onBeforeUnmount } from 'vue'
import { cloneDeep } from 'lodash'
import { arraySort } from '@/utils/utils'
const emit = defineEmits(['refresh'])
Expand All @@ -86,12 +87,15 @@ const open = (data: any, id?: string) => {
detail.value.paragraph_list = arraySort(detail.value.paragraph_list, 'similarity', true)
dialogVisible.value = true
}
onBeforeUnmount(() => {
dialogVisible.value = false
})
defineExpose({ open })
</script>
<style lang="scss">
.paragraph-source {
padding: 0;
.el-dialog__header {
padding: 24px 24px 0 24px;
}
Expand All @@ -102,4 +106,9 @@ defineExpose({ open })
height: calc(100vh - 260px);
}
}
@media only screen and (max-width: 768px) {
.paragraph-source {
width: 90% !important;
}
}
</style>
2 changes: 1 addition & 1 deletion ui/src/views/application/components/ParamSettingDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ defineExpose({ open })
padding: 0 !important;
}
.dialog-max-height {
height: calc(100vh - 180px);
height: 550px;
}
.custom-slider {
.el-input-number.is-without-controls .el-input__wrapper {
Expand Down

0 comments on commit a5d58b7

Please sign in to comment.