mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-03-18 23:43:55 +01:00
Prevent command palette from jumping with less results
This commit is contained in:
@@ -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',
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user