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.
Python agentaichatgptdeepseekfine-tuninggemmaimage-generationllamallmllmsopenaipythonqwenreinforcement-learningself-hostedstable-diffusiontext-to-speechttsuiunsloth
Studio: keep the arrow cursor on a sent prompt's time (#12420)
Michael Han3b579a6b7501
diff --git a/studio/frontend/src/components/assistant-ui/user-message-time.tsx b/studio/frontend/src/components/assistant-ui/user-message-time.tsxindex eea78c6060f..259920a4c73 100644--- a/studio/frontend/src/components/assistant-ui/user-message-time.tsx+++ b/studio/frontend/src/components/assistant-ui/user-message-time.tsx@@ -25,13 +25,15 @@ export const UserMessageTime: FC = () => {dateStyle: "full",timeStyle: "short",});+ // A button only so the keyboard reaches the tooltip. Clicking does nothing, so the+ // cursor stays an arrow, even with pointer cursors on.return (<Tooltip><TooltipTrigger asChild={true}><buttontype="button"aria-label={fullDate}- className="aui-user-message-time-trigger mr-2 h-8 min-w-8 flex-1 cursor-pointer self-center rounded-sm text-right text-ui-13 text-muted-foreground tabular-nums"+ className="aui-user-message-time-trigger mr-2 h-8 min-w-8 flex-1 cursor-default! self-center rounded-sm text-right text-ui-13 text-muted-foreground tabular-nums"><timedateTime={date.toISOString()}diff --git a/studio/frontend/tests/user-message-time-cursor.test.ts b/studio/frontend/tests/user-message-time-cursor.test.tsnew file mode 100644index 00000000000..83c9f312b0f--- /dev/null+++ b/studio/frontend/tests/user-message-time-cursor.test.ts@@ -0,0 +1,19 @@+// SPDX-License-Identifier: AGPL-3.0-only+// Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0++import assert from "node:assert/strict";+import test from "node:test";++import { readSrc } from "./helpers/kit.ts";++const TIME = readSrc("components/assistant-ui/user-message-time.tsx");+const TRIGGER_CLASS_RE = /className="(aui-user-message-time-trigger [^"]*)"/;++test("a sent prompt's time keeps the arrow cursor, since clicking it does nothing", () => {+ const classes = TRIGGER_CLASS_RE.exec(TIME)?.[1] ?? "";+ assert.ok(classes, "could not find the time trigger");+ // Important, so the pointer cursors setting's button rule doesn't bring the hand back.+ assert.match(classes, /(^| )cursor-default!( |$)/);+ assert.doesNotMatch(classes, /cursor-pointer/);+ assert.doesNotMatch(TIME, /onClick=/);+});