From 47d2b819eb50d3ae46329f5d0ac20cf58efc8f5d Mon Sep 17 00:00:00 2001 From: infanx Date: Tue, 7 Feb 2023 14:04:12 +0800 Subject: [PATCH] fix: the width of the code input type is not full (#838) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #### What type of PR is this? /kind bug #### What this PR does / why we need it: 修复 Console 端 FormKit 的 Code 输入类型宽度异常 #### Which issue(s) this PR fixes: Fixes # https://github.com/halo-dev/halo/issues/3227 #### Special notes for your reviewer: #### Does this PR introduce a user-facing change? ```release-note 修复 Console 端 FormKit 的 Code 输入框宽度未占满的问题 ``` --- packages/components/src/components/codemirror/Codemirror.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/components/src/components/codemirror/Codemirror.vue b/packages/components/src/components/codemirror/Codemirror.vue index 6907ebf6..6d132b65 100644 --- a/packages/components/src/components/codemirror/Codemirror.vue +++ b/packages/components/src/components/codemirror/Codemirror.vue @@ -45,6 +45,7 @@ const emit = defineEmits<{ const customTheme = EditorView.theme({ "&": { height: props.height, + width: "100%", }, });