Skip to content

Commit 223e62c

Browse files
committed
fix(data-inspector): scroll the left pane at short viewport heights
1 parent 02967d8 commit 223e62c

4 files changed

Lines changed: 19 additions & 15 deletions

File tree

plugins/data-inspector/src/spa/App.vue

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -65,18 +65,22 @@ function saveCurrent(input: { title?: string, description?: string, scope: Saved
6565
<div class="flex flex-col h-full overflow-hidden min-h-0">
6666
<AppHeader />
6767
<DataSourcePanel />
68-
<QueryPanel />
69-
<SavedQueriesPanel
70-
:saved="savedApi.saved.value"
71-
:suggested="wb.activeSource.value?.queries ?? []"
72-
:current-query="wb.query.value"
73-
:current-filters="wb.settings"
74-
:readonly="connection.mode === 'static'"
75-
class="px3 py2"
76-
@load="wb.applyRecipe($event)"
77-
@remove="savedApi.remove($event)"
78-
@save="saveCurrent"
79-
/>
68+
<div class="flex-1 min-h-0 overflow-y-auto">
69+
<div class="min-h-full flex flex-col">
70+
<QueryPanel />
71+
<SavedQueriesPanel
72+
:saved="savedApi.saved.value"
73+
:suggested="wb.activeSource.value?.queries ?? []"
74+
:current-query="wb.query.value"
75+
:current-filters="wb.settings"
76+
:readonly="connection.mode === 'static'"
77+
class="px3 py2"
78+
@load="wb.applyRecipe($event)"
79+
@remove="savedApi.remove($event)"
80+
@save="saveCurrent"
81+
/>
82+
</div>
83+
</div>
8084
</div>
8185
</Pane>
8286
<Pane class="min-w-0">

plugins/data-inspector/src/spa/components/DataShapePanel.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ const rootLabel = computed(() => {
8787
</div>
8888

8989
<!-- One-level data shape as a plain code block; click a prop to query it. -->
90-
<div class="flex-1 min-h-0 overflow-auto font-mono max-h50 overflow-auto text-xs border border-base rounded-lg px-3 py-2">
90+
<div class="flex-1 min-h-0 overflow-auto font-mono max-h50 text-xs border border-base rounded-lg px-3 py-2">
9191
<template v-if="entries.length">
9292
<div class="op50 select-none">
9393
{

plugins/data-inspector/src/spa/components/QueryPanel.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ function copyQuery(): void {
6969
v-model="wb.query.value"
7070
:syntax="wb.syntax.value"
7171
:suggestions="wb.suggestions.value"
72-
class="flex-1 min-h-0 mx2"
72+
class="flex-1 min-h-32 mx2"
7373
@run="wb.runNow()"
7474
@suggest="wb.scheduleSuggestions($event)"
7575
@accept="wb.acceptSuggestion($event)"

plugins/data-inspector/src/spa/components/SavedQueriesPanel.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ function filterBadges(entry: Query): FilterBadge[] {
110110
</ActionButton>
111111
</div>
112112

113-
<div v-if="entries.length" class="flex-1 overflow-auto min-h-0 max-h-80 grid grid-cols-[repeat(auto-fit,minmax(15rem,1fr))] gap-1">
113+
<div v-if="entries.length" class="grid grid-cols-[repeat(auto-fit,minmax(15rem,1fr))] gap-1">
114114
<div
115115
v-for="entry in entries"
116116
:key="entry.key"

0 commit comments

Comments
 (0)