From 84bb57f208a789ec0d38f8b2812a4cdc510937ef Mon Sep 17 00:00:00 2001 From: imagineer99 Date: Tue, 3 Mar 2026 18:37:46 +0000 Subject: [PATCH] fix: prevent select scroll-lock margin from shifting layout --- studio/frontend/src/components/ui/select.tsx | 36 ++++++++++---------- studio/frontend/src/index.css | 3 ++ 2 files changed, 21 insertions(+), 18 deletions(-) diff --git a/studio/frontend/src/components/ui/select.tsx b/studio/frontend/src/components/ui/select.tsx index 52fe4e5a75..4c500af08e 100644 --- a/studio/frontend/src/components/ui/select.tsx +++ b/studio/frontend/src/components/ui/select.tsx @@ -4,8 +4,8 @@ import { Select as SelectPrimitive } from "radix-ui"; import type * as React from "react"; import { createContext, useContext, useState } from "react"; -import { cn } from "@/lib/utils"; -import { useDialogPortalContainer } from "@/components/ui/dialog"; +import { cn } from "@/lib/utils"; +import { useDialogPortalContainer } from "@/components/ui/dialog"; import { ArrowDown01Icon, ArrowUp01Icon, @@ -92,22 +92,22 @@ function SelectTrigger({ ); } -function SelectContent({ - className, - children, - position = "item-aligned", - align = "center", - container, - ...props -}: React.ComponentProps & { - container?: HTMLElement | null; -}) { - const dialogContainer = useDialogPortalContainer(); - return ( - - & { + container?: HTMLElement | null; +}) { + const dialogContainer = useDialogPortalContainer(); + return ( + +