fix(editor): unify Ace editor padding

This commit is contained in:
jxxghp
2026-07-29 13:48:12 +08:00
parent 9ef45918b8
commit 01e7dcee56
7 changed files with 44 additions and 16 deletions
@@ -1,6 +1,7 @@
<script setup lang="ts">
import { useDisplay } from 'vuetify'
import { useI18n } from 'vue-i18n'
import { configureAceEditorPadding } from '@/utils/aceEditor'
// 国际化
const { t } = useI18n()
@@ -84,6 +85,7 @@ function submitCustomCSS() {
:options="editorOptions"
wrap
class="custom-css-editor"
@init="configureAceEditorPadding"
/>
</div>
<VCardActions class="app-dialog-actions custom-css-actions">
@@ -1,6 +1,7 @@
<script setup lang="ts">
import { useDisplay } from 'vuetify'
import { useI18n } from 'vue-i18n'
import { configureAceEditorPadding } from '@/utils/aceEditor'
const { t } = useI18n()
const display = useDisplay()
@@ -90,6 +91,7 @@ function submitTemplate() {
:options="editorOptions"
wrap
class="template-ace-editor"
@init="configureAceEditorPadding"
/>
</div>
<VCardActions class="app-dialog-actions template-editor-actions">
@@ -2,6 +2,7 @@
import api from '@/api'
import { useI18n } from 'vue-i18n'
import { useDisplay } from 'vuetify'
import { configureAceEditorPadding } from '@/utils/aceEditor'
// 显示器宽度
const display = useDisplay()
@@ -84,6 +85,7 @@ async function handleReset() {
lang="ini"
theme="monokai"
class="rounded h-full min-h-[30rem]"
@init="configureAceEditorPadding"
>
</VAceEditor>
</VCol>