From 9aafa93a4a0c7095ee7852a7fce0f98f8b7b5d2f Mon Sep 17 00:00:00 2001 From: Tnze Date: Thu, 10 Oct 2024 22:31:56 +0800 Subject: [PATCH] Optimize mobile UI layout --- src/components/designer/Designer.vue | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/components/designer/Designer.vue b/src/components/designer/Designer.vue index cf9b29f6..46feaea4 100644 --- a/src/components/designer/Designer.vue +++ b/src/components/designer/Designer.vue @@ -56,6 +56,10 @@ const store = useDesignerStore() const { $t } = useFluent() const displayJob = inject(displayJobKey) as Ref const foldMultiFunctionArea = useMediaQuery('screen and (max-width: 480px)') +watch(foldMultiFunctionArea, (fold) => { + if (!fold && activeTab.value == 'action-panel') + activeTab.value = 'attributes-enhance'; +}) const actionQueueElem = ref() const { height: actionQueueHeight } = useElementSize(actionQueueElem) @@ -254,7 +258,7 @@ async function handleSolverResult(actions: Actions[], solverName: SequenceSource
- + @@ -264,8 +268,12 @@ async function handleSolverResult(actions: Actions[], solverName: SequenceSource :preview-solver="previewSolver" :err-list="activeRst?.errors" :loading-solver-result="isReadingSolverDisplay" clearable />
- + + +