From 96aada26319246d406a23543fe26846df5b92325 Mon Sep 17 00:00:00 2001 From: zipg Date: Wed, 24 Jun 2026 19:15:51 +0800 Subject: [PATCH] fix: optimize query cell detail panel layout * fix: improve cell detail editor layout * test: update cell detail drawer default --------- Co-authored-by: staff --- apps/desktop/src/components/grid/DataGrid.vue | 46 ++++++++++--------- .../src/components/layout/ContentArea.vue | 6 ++- apps/desktop/src/stores/settingsStore.ts | 6 +-- packages/app-tests/settingsStore.test.ts | 4 +- 4 files changed, 34 insertions(+), 28 deletions(-) diff --git a/apps/desktop/src/components/grid/DataGrid.vue b/apps/desktop/src/components/grid/DataGrid.vue index 7acfbf700d..27b9014945 100644 --- a/apps/desktop/src/components/grid/DataGrid.vue +++ b/apps/desktop/src/components/grid/DataGrid.vue @@ -7817,7 +7817,7 @@ const gridContextMenuItems = computed(() => { -
+
{{ t("grid.columnName") }}
@@ -7882,23 +7882,23 @@ const gridContextMenuItems = computed(() => {
-
-
+
+
{{ t("grid.cellValue") }}
- - - - @@ -7911,7 +7911,7 @@ const gridContextMenuItems = computed(() => { - @@ -7928,15 +7928,9 @@ const gridContextMenuItems = computed(() => {
{{
@@ -7952,10 +7946,20 @@ const gridContextMenuItems = computed(() => {
                   
-
- - - +
+
+ + +
+
+ + + +
diff --git a/apps/desktop/src/components/layout/ContentArea.vue b/apps/desktop/src/components/layout/ContentArea.vue index fa652e4f89..e514c9a949 100644 --- a/apps/desktop/src/components/layout/ContentArea.vue +++ b/apps/desktop/src/components/layout/ContentArea.vue @@ -135,6 +135,8 @@ const { t } = useI18n(); const queryStore = useQueryStore(); const connectionStore = useConnectionStore(); const { toast } = useToast(); +const DEFAULT_QUERY_RESULTS_PANE_SIZE = 68; +const DEFAULT_QUERY_EDITOR_PANE_SIZE = 100 - DEFAULT_QUERY_RESULTS_PANE_SIZE; onMounted(() => { const preload = () => preloadDataGridComponent(); @@ -537,7 +539,7 @@ defineExpose({ focusSearch, refreshData, handleModRTarget, requestQueryEditorExe