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(studio): center sidebar header icons in hover circles (#15528)

Wasim Yousef Said98172b704567
diff --git a/studio/frontend/src/components/app-sidebar.tsx b/studio/frontend/src/components/app-sidebar.tsx
index c6266fca97b..9490fd8718b 100644
--- a/studio/frontend/src/components/app-sidebar.tsx
+++ b/studio/frontend/src/components/app-sidebar.tsx
@@ -393,6 +393,12 @@ const MoreVerticalCenteredIcon = MoreVerticalIcon.map(([tag, attrs]) => [
{ ...attrs, transform: "translate(0 -0.5)" },
]) as unknown as IconSvgElement;
+// The header ellipsis has the same half-unit vertical offset as the row kebab.
+const MoreHorizontalCenteredIcon = MoreHorizontalIcon.map(([tag, attrs]) => [
+ tag,
+ { ...attrs, transform: "translate(0 -0.5)" },
+]) as unknown as IconSvgElement;
+
const PROJECT_CHAT_LIMIT = 4;
const SIDEBAR_PROJECT_LIMIT = 5;
const RECENTS_PAGE_SIZE = SIDEBAR_PAGE_SIZE;
@@ -4555,7 +4561,7 @@ export function AppSidebar() {
aria-label={options.ariaLabel}
className="sidebar-header-action"
>
- <HugeiconsIcon icon={MoreHorizontalIcon} strokeWidth={1.75} className="size-icon" />
+ <HugeiconsIcon icon={MoreHorizontalCenteredIcon} strokeWidth={1.75} className="size-icon" />
</button>
)}
>
diff --git a/studio/frontend/src/index.css b/studio/frontend/src/index.css
index 6b4bc3ac054..08ec12ce80c 100644
--- a/studio/frontend/src/index.css
+++ b/studio/frontend/src/index.css
@@ -2274,6 +2274,11 @@ html[data-chat-font] .aui-root {
.sidebar-header-action:hover {
background-color: var(--nav-surface-hover);
}
+ /* Even-sized glyphs keep the inset inside the 20px circle on whole pixels. */
+ .sidebar-header-action > svg {
+ width: round(nearest, var(--icon-size), 2px);
+ height: round(nearest, var(--icon-size), 2px);
+ }
@media (pointer: coarse) {
.sidebar-header-action {
@apply opacity-100 pointer-events-auto;