Prevent command palette from jumping with less results

This commit is contained in:
Gregory Schier
2025-06-28 07:37:15 -07:00
parent 81c3de807d
commit 9b0a767ac8
2 changed files with 2 additions and 2 deletions

View File

@@ -47,7 +47,7 @@ export function Dialog({
<div
role="dialog"
className={classNames(
'x-theme-dialog absolute inset-0 pointer-events-none',
'py-4 x-theme-dialog absolute inset-0 pointer-events-none',
'h-full flex flex-col items-center justify-center',
vAlign === 'top' && 'justify-start',
vAlign === 'center' && 'justify-center',

View File

@@ -8,7 +8,7 @@ export function useToggleCommandPalette() {
id: 'command_palette',
size: 'dynamic',
hideX: true,
className: '!max-h-[min(30rem,calc(100vh-4rem))]',
className: 'mb-auto mt-[4rem] !max-h-[min(30rem,calc(100vh-4rem))]',
vAlign: 'top',
noPadding: true,
noScroll: true,