Skip to content

Commit 7063746

Browse files
authored
Merge pull request #11738 from yangwei9012/ab
[fix amis-editor]修复block容器的最小高度问题
2 parents bc223de + 49eb3d7 commit 7063746

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

packages/amis-editor-core/scss/_variables.scss

+3
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,6 @@ $default-bg-color: #f7f7f9; // 默认背景颜色
4646
--button-size-md-font-size: 12px;
4747
--button-size-default-font-size: 12px;
4848
}
49+
50+
// 空容器的占位最小高度
51+
$Editor-placehoder-height: 34px;

packages/amis-editor-core/scss/editor.scss

+2-2
Original file line numberDiff line numberDiff line change
@@ -1314,7 +1314,7 @@
13141314

13151315
&.layout-content {
13161316
height: 100%;
1317-
min-height: 30px;
1317+
min-height: $Editor-placehoder-height;
13181318
}
13191319

13201320
&.fill-placeholder {
@@ -1337,7 +1337,7 @@
13371337

13381338
[data-region] {
13391339
position: relative;
1340-
min-height: 34px;
1340+
min-height: $Editor-placehoder-height;
13411341

13421342
&:empty {
13431343
min-width: 20px;

0 commit comments

Comments
 (0)