Skip to content

Commit 0342aee

Browse files
feat: paragraph
1 parent 06216b1 commit 0342aee

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

ui/src/views/paragraph/component/ParagraphCard.vue

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,7 @@
66
@mouseleave="cardLeave()"
77
>
88
<h2 class="mb-16">{{ data.title || '-' }}</h2>
9-
<MdPreview
10-
ref="editorRef"
11-
editorId="preview-only"
12-
:modelValue="data.content"
13-
class="maxkb-md"
14-
/>
15-
<el-card
9+
<el-card
1610
class="paragraph-box-operation mt-8 mr-8"
1711
shadow="always"
1812
style="--el-card-padding: 8px 12px; --el-card-border-radius: 8px"
@@ -39,7 +33,7 @@
3933
</el-icon>
4034
</el-button>
4135
</span>
42-
<el-dropdown trigger="click">
36+
<el-dropdown trigger="click" :teleported="false">
4337
<el-button text>
4438
<el-icon><MoreFilled /></el-icon>
4539
</el-button>
@@ -60,6 +54,13 @@
6054
</template>
6155
</el-dropdown>
6256
</el-card>
57+
<MdPreview
58+
ref="editorRef"
59+
editorId="preview-only"
60+
:modelValue="data.content"
61+
class="maxkb-md"
62+
/>
63+
6364
<ParagraphDialog ref="ParagraphDialogRef" :title="title" @refresh="refresh" />
6465
<SelectDocumentDialog ref="SelectDocumentDialogRef" @refresh="refreshMigrateParagraph" />
6566
<GenerateRelatedDialog ref="GenerateRelatedDialogRef" @refresh="refresh" />
@@ -162,6 +163,7 @@ function refreshMigrateParagraph() {}
162163
border: 1px solid #ffffff;
163164
box-shadow: none !important;
164165
position: relative;
166+
z-index: 9999;
165167
&:hover {
166168
background: rgba(31, 35, 41, 0.1);
167169
border: 1px solid #dee0e3;

0 commit comments

Comments
 (0)