mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-23 09:18:30 +02:00
Prevent command palette from jumping with less results
This commit is contained in:
@@ -47,7 +47,7 @@ export function Dialog({
|
|||||||
<div
|
<div
|
||||||
role="dialog"
|
role="dialog"
|
||||||
className={classNames(
|
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',
|
'h-full flex flex-col items-center justify-center',
|
||||||
vAlign === 'top' && 'justify-start',
|
vAlign === 'top' && 'justify-start',
|
||||||
vAlign === 'center' && 'justify-center',
|
vAlign === 'center' && 'justify-center',
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ export function useToggleCommandPalette() {
|
|||||||
id: 'command_palette',
|
id: 'command_palette',
|
||||||
size: 'dynamic',
|
size: 'dynamic',
|
||||||
hideX: true,
|
hideX: true,
|
||||||
className: '!max-h-[min(30rem,calc(100vh-4rem))]',
|
className: 'mb-auto mt-[4rem] !max-h-[min(30rem,calc(100vh-4rem))]',
|
||||||
vAlign: 'top',
|
vAlign: 'top',
|
||||||
noPadding: true,
|
noPadding: true,
|
||||||
noScroll: true,
|
noScroll: true,
|
||||||
|
|||||||
Reference in New Issue
Block a user