Skip to content

Commit c785dfa

Browse files
fix: Optimize style
1 parent d8b3fd7 commit c785dfa

File tree

3 files changed

+21
-12
lines changed

3 files changed

+21
-12
lines changed

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -624,10 +624,6 @@ defineExpose({ open })
624624
@media only screen and (max-width: 768px) {
625625
.execution-details-dialog {
626626
width: 90% !important;
627-
628-
.footer-content {
629-
display: block;
630-
}
631627
}
632628
}
633629
</style>

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,7 @@ defineExpose({ open })
7979
@media only screen and (max-width: 768px) {
8080
.paragraph-source {
8181
width: 90% !important;
82-
.footer-content {
83-
display: block;
84-
}
82+
8583
}
8684
}
8785
</style>

ui/src/components/ai-chat/component/ParagraphCard.vue

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
</template>
1818
<template #footer>
1919
<div class="footer-content flex-between">
20-
<el-text class="flex align-center" style="width: 50%">
20+
<el-text class="flex align-center item">
2121
<img :src="getImgUrl(data?.document_name?.trim())" alt="" width="20" class="mr-4" />
2222

2323
<template v-if="meta?.source_url">
@@ -28,24 +28,24 @@
2828
: meta?.source_url
2929
"
3030
target="_blank"
31-
class="ellipsis"
31+
class="ellipsis-1"
3232
:title="data?.document_name?.trim()"
3333
>
3434
{{ data?.document_name?.trim() }}
3535
</a>
3636
</template>
3737
<template v-else>
38-
<span class="ellipsis" :title="data?.document_name?.trim()">
38+
<span class="ellipsis-1" :title="data?.document_name?.trim()">
3939
{{ data?.document_name?.trim() }}
4040
</span>
4141
</template>
4242
</el-text>
43-
<div class="flex align-center" style="line-height: 32px">
43+
<div class="flex align-center item" style="line-height: 32px">
4444
<AppAvatar class="mr-8 avatar-blue" shape="square" :size="18">
4545
<img src="@/assets/icon_document.svg" style="width: 58%" alt="" />
4646
</AppAvatar>
4747

48-
<span class="ellipsis" :title="data?.dataset_name"> {{ data?.dataset_name }}</span>
48+
<span class="ellipsis-1" :title="data?.dataset_name"> {{ data?.dataset_name }}</span>
4949
</div>
5050
</div>
5151
</template>
@@ -77,6 +77,13 @@ const parsedMeta = computed(() => {
7777
const meta = computed(() => (isMetaObject.value ? props.data.meta : parsedMeta.value))
7878
</script>
7979
<style lang="scss" scoped>
80+
.paragraph-source-card {
81+
.footer-content {
82+
.item {
83+
width: 50%;
84+
}
85+
}
86+
}
8087
.paragraph-source-card-height {
8188
height: 260px;
8289
}
@@ -85,5 +92,13 @@ const meta = computed(() => (isMetaObject.value ? props.data.meta : parsedMeta.v
8592
.paragraph-source-card-height {
8693
height: 285px;
8794
}
95+
.paragraph-source-card {
96+
.footer-content {
97+
display: block;
98+
.item {
99+
width: 100%;
100+
}
101+
}
102+
}
88103
}
89104
</style>

0 commit comments

Comments
 (0)