Skip to content

Commit 8076d4b

Browse files
perf: 优化嵌入第三方弹出层样式
1 parent f20c3d0 commit 8076d4b

File tree

1 file changed

+15
-11
lines changed

1 file changed

+15
-11
lines changed

ui/src/views/application-overview/component/EmbedDialog.vue

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,20 @@
1414
{{ $t('views.applicationOverview.appInfo.EmbedDialog.fullscreenModeTitle') }}
1515
</p>
1616
<img src="@/assets/window1.png" alt="" class="ml-8" height="150" />
17-
<div class="code layout-bg border-t p-16">
18-
<div class="flex-between">
17+
<div class="code layout-bg border-t p-8">
18+
<div class="flex-between p-8">
1919
<span class="bold">{{
2020
$t('views.applicationOverview.appInfo.EmbedDialog.copyInstructions')
2121
}}</span>
2222
<el-button text @click="copyClick(source1)">
2323
<AppIcon iconName="app-copy"></AppIcon>
2424
</el-button>
2525
</div>
26-
<div class="mt-8 pre-wrap">
27-
{{ source1 }}
28-
</div>
26+
<el-scrollbar height="150" always>
27+
<div class="pre-wrap p-8 pt-0">
28+
{{ source1 }}
29+
</div>
30+
</el-scrollbar>
2931
</div>
3032
</div>
3133
</el-col>
@@ -35,18 +37,20 @@
3537
{{ $t('views.applicationOverview.appInfo.EmbedDialog.floatingModeTitle') }}
3638
</p>
3739
<img src="@/assets/window2.png" alt="" class="ml-8" height="150" />
38-
<div class="code layout-bg border-t p-16">
39-
<div class="flex-between">
40+
<div class="code layout-bg border-t p-8">
41+
<div class="flex-between p-8">
4042
<span class="bold">{{
4143
$t('views.applicationOverview.appInfo.EmbedDialog.copyInstructions')
4244
}}</span>
4345
<el-button text @click="copyClick(source2)">
4446
<AppIcon iconName="app-copy"></AppIcon>
4547
</el-button>
4648
</div>
47-
<div class="mt-8 pre-wrap">
48-
{{ source2 }}
49-
</div>
49+
<el-scrollbar height="150" always>
50+
<div class="pre-wrap p-8 pt-0">
51+
{{ source2 }}
52+
</div>
53+
</el-scrollbar>
5054
</div>
5155
</div>
5256
</el-col>
@@ -118,7 +122,7 @@ defineExpose({ open })
118122
font-weight: 400;
119123
font-size: 13px;
120124
white-space: pre;
121-
height: 180px;
125+
height: 188px;
122126
}
123127
}
124128
</style>

0 commit comments

Comments
 (0)