Skip to content

Commit 137fc01

Browse files
authored
fix(paragraph): bug fix (#3396)
1 parent ce5850b commit 137fc01

File tree

1 file changed

+13
-14
lines changed

1 file changed

+13
-14
lines changed

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

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
@click.stop="editParagraph(data)"
88
v-loading="loading"
99
>
10-
<h2 class="mb-16">{{ data.title || '-' }}</h2>
1110
<div v-show="show" class="mk-sticky" v-if="!disabled">
1211
<el-card
1312
class="paragraph-box-operation mt-8 mr-8"
@@ -59,6 +58,7 @@
5958
</el-dropdown>
6059
</el-card>
6160
</div>
61+
<h2 class="mb-16">{{ data.title || '-' }}</h2>
6262
<MdPreview
6363
ref="editorRef"
6464
editorId="preview-only"
@@ -188,29 +188,28 @@ function refreshMigrateParagraph() {
188188
background: var(--app-layout-bg-color);
189189
border: 1px solid #ffffff;
190190
box-shadow: none !important;
191-
// position: relative;
192-
// overflow: inherit;
191+
position: relative;
192+
overflow: inherit;
193193
&:hover {
194194
background: rgba(31, 35, 41, 0.1);
195195
border: 1px solid #dee0e3;
196196
}
197197
.paragraph-box-operation {
198198
position: absolute;
199-
right: 0;
200-
top: 0;
199+
right: -10px;
200+
top: -10px;
201201
overflow: inherit;
202202
border: 1px solid #dee0e3;
203203
z-index: 10;
204-
float: right;
205204
}
206205
207-
// .mk-sticky {
208-
// height: 0;
209-
// position: sticky;
210-
// right: 0;
211-
// top: 0;
212-
// overflow: inherit;
213-
// z-index: 10;
214-
// }
206+
.mk-sticky {
207+
height: 0;
208+
position: sticky;
209+
right: 0;
210+
top: 0;
211+
overflow: inherit;
212+
z-index: 10;
213+
}
215214
}
216215
</style>

0 commit comments

Comments
 (0)