Skip to content
TypeScript

fix(web): new project options scroll above the footer (#17064)

Kevin Bravo976eb02afed7
diff --git a/apps/web/src/components/CommandPalette.tsx b/apps/web/src/components/CommandPalette.tsx
index 13fec7f9a7e..1859018f3a6 100644
--- a/apps/web/src/components/CommandPalette.tsx
+++ b/apps/web/src/components/CommandPalette.tsx
@@ -3297,7 +3297,7 @@ function OpenCommandPaletteDialog(props: {
</div>
) : null}
{remoteProjectContext ? (
- <div className="p-2 pb-0">
+ <div className="shrink-0 p-2 pb-0">
<div className="px-2 py-1.5 font-medium text-muted-foreground text-xs">Repository</div>
<div className="flex min-h-8 items-center gap-2 rounded-sm px-2 py-1.5">
{remoteProjectContext.icon}
diff --git a/apps/web/src/components/CommandPaletteContent.tsx b/apps/web/src/components/CommandPaletteContent.tsx
index 8592df68ab5..3097a99131c 100644
--- a/apps/web/src/components/CommandPaletteContent.tsx
+++ b/apps/web/src/components/CommandPaletteContent.tsx
@@ -50,7 +50,7 @@ export function CommandPaletteContent({
? "flex min-h-0 flex-1 flex-col"
: panelSize === "tall-list"
? "max-h-[min(34rem,76vh)]"
- : "max-h-[min(28rem,70vh)]"
+ : "flex max-h-[min(28rem,70vh)] min-h-0 flex-col"
}
>
{children}
diff --git a/apps/web/src/components/ui/command.tsx b/apps/web/src/components/ui/command.tsx
index 257f8e36c46..b9e3297d41a 100644
--- a/apps/web/src/components/ui/command.tsx
+++ b/apps/web/src/components/ui/command.tsx
@@ -131,7 +131,7 @@ function CommandListVirtualized({
}: React.ComponentProps<typeof AutocompleteListVirtualized>) {
return (
<AutocompleteListVirtualized
- className={cn("flex max-h-[inherit] flex-col", className)}
+ className={cn("flex max-h-[inherit] min-h-0 flex-col", className)}
data-slot="command-list"
{...props}
/>