From e70a97fd2cee8f87d52748ebd87ec799554f681b Mon Sep 17 00:00:00 2001 From: Hsieh Chin Fan Date: Sun, 6 Oct 2024 00:43:36 +0800 Subject: feat: patch 8d1b346 for fixed width/height --- src/editor.mjs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/editor.mjs b/src/editor.mjs index 27744db..c121eb0 100644 --- a/src/editor.mjs +++ b/src/editor.mjs @@ -838,8 +838,6 @@ new window.MutationObserver(mutaions => { const addMapRandomlyByPreset = () => { const order = [ 'use', - 'width', - 'height', 'center', 'XYZ', 'zoom' @@ -849,7 +847,11 @@ const addMapRandomlyByPreset = () => { .filter(([key, _]) => order.includes(key)) if (aliasesEntries.length === 0) return - const yamlText = ['apply: dist/default.yml'] + const yamlText = [ + 'apply: dist/default.yml', + 'width: 100%', + 'height: 200px', + ] aliasesEntries.forEach(([option, aliases]) => { const entries = Object.entries(aliases) const validEntries = entries -- cgit v1.2.3-70-g09d2