Skip to content

Local UI to run and train LLMs and diffusion models. Supports GGUF, MLX, Qwen3.8, DeepSeek-V4.1, MiniMax-H3, Gemma 4, FLUX and more.

fix: prevent select scroll-lock margin from shifting layout

imagineer9984bb57f208a7
diff --git a/studio/frontend/src/components/ui/select.tsx b/studio/frontend/src/components/ui/select.tsx
index 52fe4e5a751..4c500af08e6 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<typeof SelectPrimitive.Content> & {
- container?: HTMLElement | null;
-}) {
- const dialogContainer = useDialogPortalContainer();
- return (
- <SelectPrimitive.Portal container={container ?? dialogContainer ?? undefined}>
- <SelectPrimitive.Content
- data-slot="select-content"
- data-align-trigger={position === "item-aligned"}
+function SelectContent({
+ className,
+ children,
+ position = "item-aligned",
+ align = "center",
+ container,
+ ...props
+}: React.ComponentProps<typeof SelectPrimitive.Content> & {
+ container?: HTMLElement | null;
+}) {
+ const dialogContainer = useDialogPortalContainer();
+ return (
+ <SelectPrimitive.Portal container={container ?? dialogContainer ?? undefined}>
+ <SelectPrimitive.Content
+ data-slot="select-content"
+ data-align-trigger={position === "item-aligned"}
className={cn(
"bg-popover text-popover-foreground data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 shadow-border ring-1 ring-border min-w-36 rounded-xl p-1 corner-squircle duration-100 relative z-50 max-h-(--radix-select-content-available-height) origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto ",
position === "popper" &&
diff --git a/studio/frontend/src/index.css b/studio/frontend/src/index.css
index 2ef1ed7d963..57d6e451c86 100644
--- a/studio/frontend/src/index.css
+++ b/studio/frontend/src/index.css
@@ -270,6 +270,9 @@
@apply font-sans;
scrollbar-gutter: stable;
}
+ body[data-scroll-locked] {
+ margin-right: 0 !important;
+ }
h1,
h2,
h3,