Skip to content

Commit 5d99224

Browse files
perf: paragraph style
1 parent a67b39c commit 5d99224

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

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

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
shadow="never"
44
:title="index + 1 + '.' + data.title || '-'"
55
class="paragraph-source-card cursor mb-8 paragraph-source-card-height"
6+
:style="{ 'height': data?.document_name?.trim() ? '300px' : '260px' }"
67
:class="data.is_active ? '' : 'disabled'"
78
:showIcon="false"
89
>
@@ -17,7 +18,12 @@
1718
</el-scrollbar>
1819

1920
<template #footer>
20-
<el-card shadow="never" style="--el-card-padding: 8px" class="w-full mb-12">
21+
<el-card
22+
shadow="never"
23+
style="--el-card-padding: 8px"
24+
class="w-full mb-12"
25+
v-if="data?.document_name?.trim()"
26+
>
2127
<el-text class="flex align-center item">
2228
<img :src="getImgUrl(data?.document_name?.trim())" alt="" width="20" class="mr-4" />
2329

@@ -81,9 +87,9 @@ const parsedMeta = computed(() => {
8187
const meta = computed(() => (isMetaObject.value ? props.data.meta : parsedMeta.value))
8288
</script>
8389
<style lang="scss" scoped>
84-
.paragraph-source-card-height {
85-
height: 300px;
86-
}
90+
// .paragraph-source-card-height {
91+
// height: 300px;
92+
// }
8793
8894
// @media only screen and (max-width: 768px) {
8995
// .paragraph-source-card-height {

0 commit comments

Comments
 (0)