Skip to content

Commit

Permalink
Update layout
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Wang <i@ryanc.cc>
  • Loading branch information
ruibaby committed May 8, 2023
1 parent db5d2e1 commit 8158826
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions console/src/components/wangEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
@select="onAttachmentsSelect"
/>

<div>
<div style="height: 20px">
<span>字数统计:</span>
<span>{{ wordNumber }}</span>
<span>字</span>
Expand Down Expand Up @@ -181,7 +181,9 @@ const editorConfig: Partial<IEditorConfig> = {
const editorStyles = computed(() => {
return {
height: `calc(100% - ${toolbarHeight.value}px - 1px)`,
// 1px = 工具栏底部 border
// 20px = 底部字数统计
height: `calc(100% - ${toolbarHeight.value}px - 1px - 20px)`,
};
});
Expand Down
Loading

0 comments on commit 8158826

Please sign in to comment.