Skip to content

Commit

Permalink
fix: duplicate scroller issue in post edit page (#5537)
Browse files Browse the repository at this point in the history
#### What type of PR is this?

/kind bug
/area editor
/milestone 2.14.x

#### What this PR does / why we need it:

在默认富文本编辑器下,当滚动时有概率会使页面小于正常大小。在文章最底部使用 AI 插件更加容易复现。

#### How to test it?

测试文章滚动时是否会小于正常大小,推荐在文章最底部使用 AI 插件来复现和测试。

#### Which issue(s) this PR fixes:

Fixes #3853 

#### Does this PR introduce a user-facing change?
```release-note
修复文章编辑页面出现多个滚动条导致的页面高度样式问题。
```
  • Loading branch information
LIlGG committed Mar 21, 2024
1 parent c7d506c commit 4fd6353
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/packages/editor/src/components/Editor.vue
Expand Up @@ -37,7 +37,7 @@ watch(
<editor-bubble-menu :editor="editor" />
<editor-header :editor="editor" />
<div class="h-full flex flex-row w-full overflow-hidden">
<div class="overflow-y-auto flex-1 bg-white">
<div class="overflow-y-auto flex-1 bg-white relative">
<div v-if="$slots.content" class="editor-header-extra">
<slot name="content" />
</div>
Expand Down

0 comments on commit 4fd6353

Please sign in to comment.