From 23a4ca8903ba1f172ec01fc50622eefa085d06f1 Mon Sep 17 00:00:00 2001 From: jearhe <0verme7753@gmail.com> Date: Sat, 5 Sep 2026 00:41:51 +0800 Subject: [PATCH] fix(grid): responsive cell detail layout in narrow panels --- apps/desktop/src/components/grid/DataGrid.vue | 41 ++++++++----------- .../grid/DataGridCellDetailPanel.vue | 18 ++++---- .../grid/__tests__/DataGridSurfaces.spec.ts | 27 ++++++++++++ 3 files changed, 54 insertions(+), 32 deletions(-) diff --git a/apps/desktop/src/components/grid/DataGrid.vue b/apps/desktop/src/components/grid/DataGrid.vue index bc0d0e5bfd..2eb2ac2222 100644 --- a/apps/desktop/src/components/grid/DataGrid.vue +++ b/apps/desktop/src/components/grid/DataGrid.vue @@ -6469,13 +6469,6 @@ const activeBinaryHexBytes = computed(() => { const activeBinaryHexRows = computed(() => (activeBinaryHexBytes.value ? buildBinaryHexViewRows(activeBinaryHexBytes.value) : [])); const activeBinaryHexByteCount = computed(() => activeBinaryHexBytes.value?.length ?? 0); -const activeCellDetailTabsGridClass = computed(() => { - const count = activeCellDetailTabs.value.length; - if (count >= 3) return "grid-cols-3"; - if (count === 2) return "grid-cols-2"; - return "grid-cols-1"; -}); - watch(activeCellDetailTabs, (tabs) => { if (!tabs.includes(activeCellDetailTab.value)) { activeCellDetailTab.value = defaultCellDetailTab(); @@ -14476,8 +14469,8 @@ function openGridSnapshot() { >
-