mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-09-05 23:56:42 +08:00
fix(editor): unify Ace editor padding
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user