Skip to content

Commit 8d2b1e3

Browse files
liyi711蚂蚁代码服务
authored andcommitted
PullRequest: 1164 fix: 修复MonacoEditor默认占位符widget文本超出问题
Merge branch 'fix/MonacoEditorPlaceHolderWidget of git@code.alipay.com:oceanbase/oceanbase-developer-center.git into dev-4.4.1 https://code.alipay.com/oceanbase/oceanbase-developer-center/pull_requests/1164 Reviewed-by: 晓康 <xxk268858@oceanbase.com> * fix: 修复MonacoEditor默认占位符widget文本超出问题
1 parent 6dce33b commit 8d2b1e3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/component/MonacoEditor/PlaceholderContentWidget.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ export default class PlaceholderContentWidget implements monaco.editor.IContentW
3737
this.domNode.style.width = 'max-content';
3838
this.domNode.textContent = this.placeholder;
3939
this.domNode.style.fontStyle = 'italic';
40+
this.domNode.style.paddingRight = '14px';
4041
this.editor.applyFontInfo(this.domNode);
4142
this.domNode.style.color = 'grey';
4243
}

0 commit comments

Comments
 (0)