Skip to content

Commit 916e93a

Browse files
author
puhui999
committed
fix: 解决右侧代码过长时不缩放啥也做不了的 bug
1 parent 44be35b commit 916e93a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/views/infra/codegen/PreviewCode.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@
4545
<el-button class="float-right" text type="primary" @click="copy(item.code)">
4646
{{ t('common.copy') }}
4747
</el-button>
48-
<div>
48+
<el-scrollbar height="600px">
4949
<pre><code v-dompurify-html="highlightedCode(item)" class="hljs"></code></pre>
50-
</div>
50+
</el-scrollbar>
5151
</el-tab-pane>
5252
</el-tabs>
5353
</el-card>

0 commit comments

Comments
 (0)