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.

Studio: hover label on the composer + button (#14927)

Michael Hanc1e6bf2cfb7d
diff --git a/studio/frontend/src/components/assistant-ui/thread.tsx b/studio/frontend/src/components/assistant-ui/thread.tsx
index 2651ad021f1..fbfccebb757 100644
--- a/studio/frontend/src/components/assistant-ui/thread.tsx
+++ b/studio/frontend/src/components/assistant-ui/thread.tsx
@@ -7393,6 +7393,7 @@ const ComposerToolsMenu: FC<{
<button
type="button"
aria-label="Tools and attachments"
+ data-pill-label="Add files and more"
className="unsloth-composer-plus"
data-tour="chat-plus-menu"
>
diff --git a/studio/frontend/src/features/chat/shared-composer.tsx b/studio/frontend/src/features/chat/shared-composer.tsx
index 226f8331892..6d2a9bb5453 100644
--- a/studio/frontend/src/features/chat/shared-composer.tsx
+++ b/studio/frontend/src/features/chat/shared-composer.tsx
@@ -2956,6 +2956,7 @@ export function SharedComposer({
<button
type="button"
aria-label="Tools and attachments"
+ data-pill-label="Add files and more"
className="unsloth-composer-plus"
>
<PlusIcon className="size-[calc(22px*var(--ui-space-scale,1))] stroke-[1.75px]" />
diff --git a/studio/frontend/src/index.css b/studio/frontend/src/index.css
index 55f13ccdcb9..0af5c992d18 100644
--- a/studio/frontend/src/index.css
+++ b/studio/frontend/src/index.css
@@ -3472,7 +3472,13 @@ html[data-chat-font] .aui-root {
}
.unsloth-composer-plus {
- @apply flex size-9 shrink-0 cursor-pointer items-center justify-center rounded-full text-foreground transition-colors hover:bg-muted-foreground/15 disabled:cursor-not-allowed disabled:opacity-40;
+ @apply relative flex size-9 shrink-0 cursor-pointer items-center justify-center rounded-full text-foreground transition-colors hover:bg-muted-foreground/15 disabled:cursor-not-allowed disabled:opacity-40;
+ }
+
+ /* The pills' hover label, kept off while the menu it opens is showing. */
+ .unsloth-composer-plus[data-pill-label]:not([data-state="open"]):hover::after {
+ content: attr(data-pill-label);
+ @apply pointer-events-none absolute bottom-[calc(100%+6px)] left-1/2 z-50 -translate-x-1/2 rounded-full bg-(--tooltip-bg) px-2.5 py-1.5 text-ui-11 font-medium leading-snug whitespace-nowrap text-(--tooltip-fg) shadow-(--tooltip-shadow);
}
.unsloth-composer-plus[data-state="open"] {