From ab46f3fc7245d529ee648f3d122ffa013836df13 Mon Sep 17 00:00:00 2001 From: t8y2 <1156263951@qq.com> Date: Wed, 12 Aug 2026 18:12:30 +0800 Subject: [PATCH] fix(structure): flatten editable grid controls --- .../structure/TableStructureEditor.vue | 36 +++++++++++++++---- .../tableStructureEditorState.test.ts | 9 +++++ 2 files changed, 39 insertions(+), 6 deletions(-) diff --git a/apps/desktop/src/components/structure/TableStructureEditor.vue b/apps/desktop/src/components/structure/TableStructureEditor.vue index 2e84c54944..b8d7e29ecb 100644 --- a/apps/desktop/src/components/structure/TableStructureEditor.vue +++ b/apps/desktop/src/components/structure/TableStructureEditor.vue @@ -466,7 +466,7 @@ const structureDensityStyle = computed(() => { "--structure-line-height": String(metric.lineHeight), }; }); -const structureControlClass = "h-[var(--structure-control-height)] min-w-0 rounded-[6px] px-[var(--structure-control-px)] py-0 text-[length:var(--structure-font-size)] focus-visible:border-ring/50 focus-visible:ring-1 focus-visible:ring-ring/25"; +const structureControlClass = "structure-grid-control h-[var(--structure-control-height)] min-w-0 rounded-[6px] px-[var(--structure-control-px)] py-0 text-[length:var(--structure-font-size)] focus-visible:border-ring/50 focus-visible:ring-1 focus-visible:ring-ring/25"; const structureMonoControlClass = `${structureControlClass} font-mono`; const structureToolbarButtonClass = "h-[var(--structure-control-height)] gap-1 px-[var(--structure-control-px)] text-[length:var(--structure-font-size)]"; const structureIconButtonClass = "h-[var(--structure-control-height)] w-[var(--structure-control-height)]"; @@ -2761,7 +2761,7 @@ watch([activeTab, ddlLoading], ([tab, loading]) => { - +
{ @@ -3029,7 +3029,7 @@ watch([activeTab, ddlLoading], ([tab, loading]) => { } " > - + @@ -3140,7 +3140,7 @@ watch([activeTab, ddlLoading], ([tab, loading]) => { {{ t("common.loading") }} - +
{