Skip to content

Commit

Permalink
fix: #289
Browse files Browse the repository at this point in the history
  • Loading branch information
YeungHoiChiu committed Aug 27, 2024
1 parent f278bc6 commit 2a9d087
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 3 deletions.
5 changes: 5 additions & 0 deletions src/assets/common.css
Original file line number Diff line number Diff line change
Expand Up @@ -360,3 +360,8 @@ body,
.remote-header .el-page-header__left{
align-items: center;
}

.popper-auto-flow {
max-height: 500px;
overflow: auto;
}
8 changes: 7 additions & 1 deletion src/components/StepShow.vue
Original file line number Diff line number Diff line change
Expand Up @@ -829,7 +829,13 @@ const getNotes = (text, type) => {
<el-tag type="info" size="small" style="margin-left: 10px">{{
step.content
}}</el-tag>
<el-popover placement="bottom" :width="700" trigger="click">
<el-popover
placement="bottom"
:fallback-placements="['bottom', 'top', 'right', 'left']"
popper-class="popper-auto-flow"
:width="700"
trigger="click"
>
<child-step-list-view :steps="childStep" />
<template #reference>
<el-button
Expand Down
8 changes: 7 additions & 1 deletion src/views/PublicStep.vue
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,13 @@ onMounted(() => {
align="center"
>
<template #default="scope">
<el-popover placement="left" :width="700" trigger="click">
<el-popover
placement="left"
popper-class="popper-auto-flow"
:fallback-placements="['bottom', 'top', 'right', 'left']"
:width="700"
trigger="click"
>
<child-step-list-view :steps="curShowPublicStep.steps" />
<template #reference>
<el-button size="mini" @click="getPublicStepInfo(scope.row.id)">{{
Expand Down
2 changes: 1 addition & 1 deletion vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default defineConfig({
port: 3002,
},
build: {
chunkSizeWarningLimit: 600 * 1024, // 设置警告阈值为600KiB,因为element-plus超过500kb导致打包失败
chunkSizeWarningLimit: 600, // 设置警告阈值为600KiB
rollupOptions: {
output: {
manualChunks(id) {
Expand Down

0 comments on commit 2a9d087

Please sign in to comment.