fix: resolve SQL file dialog dropdown and footer styling issues (#271)

Use popper positioning for connection Select to prevent item-aligned
mode from hiding the dropdown when few options exist. Align
DialogScrollContent padding with DialogContent (p-4) so DialogFooter
negative margins reach dialog edges correctly.
This commit is contained in:
t8y2
2026-05-14 18:45:24 +08:00
parent 4562646253
commit c8f6f39fbb
2 changed files with 2 additions and 2 deletions
@@ -434,7 +434,7 @@ watch(open, (value) => {
</div>
<SelectValue v-else :placeholder="t('sqlFile.selectConnection')" />
</SelectTrigger>
<SelectContent>
<SelectContent position="popper">
<SelectItem v-for="c in sqlConnections" :key="c.id" :value="c.id">
<div class="flex items-center gap-1.5">
<DatabaseIcon :db-type="c.driver_profile || c.db_type" class="w-3.5 h-3.5" />
@@ -27,7 +27,7 @@ const forwarded = useForwardPropsEmits(delegatedProps, emits);
<DialogContent
:class="
cn(
'relative z-50 grid w-full max-w-lg my-8 gap-4 border border-border bg-background p-6 shadow-lg duration-200 sm:rounded-lg md:w-full',
'relative z-50 grid w-full max-w-lg my-8 gap-4 border border-border bg-background p-4 shadow-lg duration-200 sm:rounded-lg md:w-full',
props.class,
)
"