From e94d1b63eda8da344ec27d489095aebda9ee68ed Mon Sep 17 00:00:00 2001 From: Diego Imbert Date: Tue, 25 Aug 2026 17:47:46 +0200 Subject: [PATCH] fix(datatables): inset tree rows with padding and unstick the row menu after a click --- frontend/src/lib/components/DBManager.svelte | 40 ++++++++++---------- 1 file changed, 21 insertions(+), 19 deletions(-) diff --git a/frontend/src/lib/components/DBManager.svelte b/frontend/src/lib/components/DBManager.svelte index 9493ca2e32..c1bbb5e02b 100644 --- a/frontend/src/lib/components/DBManager.svelte +++ b/frontend/src/lib/components/DBManager.svelte @@ -256,7 +256,7 @@ // Row actions stay out of the way until you are on the row — or it is the one // you are looking at, where the menu is part of the current context. const rowActionsClass = (current: boolean) => - 'absolute right-0 transition-opacity focus-within:opacity-100 group-hover:opacity-100 ' + + 'absolute right-0 transition-opacity focus-visible:opacity-100 group-hover:opacity-100 ' + (current ? 'opacity-100' : 'opacity-0') // The chevron is the resting state of that slot: it gives way to the menu @@ -583,13 +583,17 @@ {@const dtOpen = isExpanded(root.datatable)} {#if root.datatable !== undefined} {/if} @@ -636,7 +636,7 @@ {/if} {#each root.schemas as sc (sc.schemaKey)} {@const schemaOpen = isExpanded(root.datatable, sc.schemaKey)} - {@const indent = root.datatable !== undefined ? 'pl-6' : 'pl-2'} + {@const indent = root.datatable !== undefined ? 'pl-7' : 'pl-3'} {#if dbSupportsSchemas} {/if} {#if schemaOpen || !dbSupportsSchemas} {@const tableIndent = dbSupportsSchemas ? root.datatable !== undefined - ? 'pl-12' - : 'pl-8' + ? 'pl-[3.25rem]' + : 'pl-9' : root.datatable !== undefined - ? 'pl-8' - : 'pl-3'} + ? 'pl-9' + : 'pl-4'} {#each sc.tables as tableKey (tableKey)} {@const isSelected = root.datatable === currentDatatable && @@ -771,7 +773,7 @@ {#if dbSupportsSchemas && (root.datatable === currentDatatable || root.datatable === undefined) && search.trim() === ''}