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 MediaPageLink tooltip blocking Windows titlebar controls (#10253)

Sourav Rajvia197ed93af11
diff --git a/studio/frontend/src/components/media-page-link.tsx b/studio/frontend/src/components/media-page-link.tsx
index 403936ccdc6..a58fc6681ef 100644
--- a/studio/frontend/src/components/media-page-link.tsx
+++ b/studio/frontend/src/components/media-page-link.tsx
@@ -65,7 +65,9 @@ export function MediaPageLink({
/>
</button>
</TooltipTrigger>
- <TooltipContent>{tooltip ?? `Go to ${label}`}</TooltipContent>
+ <TooltipContent side="bottom" sideOffset={6} className="tooltip-compact">
+ {tooltip ?? `Go to ${label}`}
+ </TooltipContent>
</Tooltip>
</>
);
diff --git a/tests/studio/test_desktop_reliability_frontend_contract.py b/tests/studio/test_desktop_reliability_frontend_contract.py
index 4f9853d070f..7ae9cb8f62a 100644
--- a/tests/studio/test_desktop_reliability_frontend_contract.py
+++ b/tests/studio/test_desktop_reliability_frontend_contract.py
@@ -908,6 +908,16 @@ def test_compact_media_link_keeps_accessible_name_and_truncation():
assert "arrowClassName" in button
+def test_media_page_link_tooltip_drops_below_titlebar_controls():
+ """unslothai/unsloth#10226: Images/Video park this link in the top-right header beside
+ Windows controls; a top tooltip blocks minimize/maximize/close."""
+ source = MEDIA_PAGE_LINK.read_text(encoding = "utf-8")
+ tooltip = source.split("<TooltipContent", 1)[1].split("</TooltipContent>", 1)[0]
+
+ assert 'side="bottom"' in tooltip
+ assert "sideOffset={6}" in tooltip
+
+
def test_media_page_headers_out_stack_the_mac_drag_region():
"""macOS insets the media pages 0px, so their 48px header overlaps the navbar's 34px drag
strip: the band must out-stack it yet stay click-through (controls click, gaps drag)."""