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.

Prompt queue: row button labels do not take the next row's clicks (#15383)

Daniel Hanbe64e0d78212
diff --git a/studio/frontend/src/components/assistant-ui/prompt-queue-list.tsx b/studio/frontend/src/components/assistant-ui/prompt-queue-list.tsx
index 537a0d65360..2c6939baac5 100644
--- a/studio/frontend/src/components/assistant-ui/prompt-queue-list.tsx
+++ b/studio/frontend/src/components/assistant-ui/prompt-queue-list.tsx
@@ -53,6 +53,8 @@ type PromptQueueListProps = {
};
const MENU_OR_TRIGGER = "[data-slot='dropdown-menu-content'], [data-queue-menu]";
+// A focused row button shows its label below it, over the next 32px row; it must not take that row's clicks.
+const ROW_TOOLTIP_CLASS = "prompt-queue-option-tooltip pointer-events-none";
export function PromptQueueList({
entry,
@@ -305,6 +307,7 @@ export function PromptQueueList({
<TooltipIconButton
type="button"
tooltip={t("promptQueue.dragTooltip")}
+ tooltipClassName={ROW_TOOLTIP_CLASS}
aria-label={t("promptQueue.reorderLabel", {
position,
total: items.length,
@@ -358,6 +361,7 @@ export function PromptQueueList({
<TooltipIconButton
type="button"
tooltip={t("promptQueue.steerTooltip")}
+ tooltipClassName={ROW_TOOLTIP_CLASS}
aria-label={t("promptQueue.steerLabel", { position })}
disabled={!item.canEdit || !item.canRemove}
className="h-7 w-auto shrink-0 gap-1.5 px-2 font-normal text-muted-foreground hover:text-foreground pointer-coarse:h-11"
@@ -377,6 +381,7 @@ export function PromptQueueList({
<TooltipIconButton
type="button"
tooltip={t("promptQueue.removeTooltip")}
+ tooltipClassName={ROW_TOOLTIP_CLASS}
aria-label={t("promptQueue.removeLabel", { position })}
disabled={!item.canRemove}
className="size-7 shrink-0 text-muted-foreground hover:text-destructive pointer-coarse:size-11"
@@ -392,6 +397,7 @@ export function PromptQueueList({
<TooltipIconButton
ref={triggerRef}
tooltip={t("promptQueue.moreTooltip")}
+ tooltipClassName={ROW_TOOLTIP_CLASS}
data-queue-menu
aria-label={t("promptQueue.moreLabel", { position })}
className="size-7 shrink-0 text-muted-foreground hover:text-foreground data-[state=open]:bg-accent data-[state=open]:text-foreground pointer-coarse:size-11"
diff --git a/studio/frontend/src/components/assistant-ui/tooltip-icon-button.tsx b/studio/frontend/src/components/assistant-ui/tooltip-icon-button.tsx
index bfe7b96487e..8c8d874a7e5 100644
--- a/studio/frontend/src/components/assistant-ui/tooltip-icon-button.tsx
+++ b/studio/frontend/src/components/assistant-ui/tooltip-icon-button.tsx
@@ -17,12 +17,13 @@ import { cn } from "@/lib/utils";
export type TooltipIconButtonProps = ComponentPropsWithRef<typeof Button> & {
tooltip: string;
side?: "top" | "bottom" | "left" | "right";
+ tooltipClassName?: string;
};
export const TooltipIconButton = forwardRef<
HTMLButtonElement,
TooltipIconButtonProps
->(({ children, tooltip, side = "bottom", className, ...rest }, ref) => {
+>(({ children, tooltip, side = "bottom", className, tooltipClassName, ...rest }, ref) => {
return (
// No grace area: the label is wider than the icon, so the path to it covers the next icon in
// a row and kept this label up (and that icon's away) while the pointer rested there.
@@ -39,7 +40,7 @@ export const TooltipIconButton = forwardRef<
<span className="aui-sr-only sr-only">{tooltip}</span>
</Button>
</TooltipTrigger>
- <TooltipContent side={side} className="tooltip-compact">
+ <TooltipContent side={side} className={cn("tooltip-compact", tooltipClassName)}>
{tooltip}
</TooltipContent>
</Tooltip>