The best way to control Claude Code, Codex and more from any computer or phone
fix(ui): snooze menu times match the menu's typography (#30596)
Ishaan Kothari committed
Nov 5, 2026 at 19:27 UTC
bfb388415e8d3d39e5a7b3844fa7bc299c64f725
2 files changed
+15
-2
apps/web/src/components/sidebar/SidebarThreadRow.tsx
+2
-2
@@ -110,7 +110,7 @@ import { shouldShowInstanceBadge, type ProviderInstanceEntry } from "../../provi
110
import { useThreadRunningTerminalIds } from "../../state/terminalSessions";
111
import { InlineButton } from "../ui/button";
112
import { Kbd } from "../ui/kbd";
113
-import { Menu, MenuItem, MenuPopup, MenuSeparator, MenuShortcut, MenuTrigger } from "../ui/menu";
113
+import { Menu, MenuItem, MenuItemDetail, MenuPopup, MenuSeparator, MenuTrigger } from "../ui/menu";
114
import { Tooltip, TooltipPopup, TooltipTrigger } from "../ui/tooltip";
115
import { MiddleTruncate } from "../ui/middle-truncate";
116
import { useThreadHasUnsentDraft } from "../../composerDraftStore";
@@ -411,7 +411,7 @@ function SnoozeMenuButton(props: {
411
}}
412
>
413
{preset.label}
414
- <MenuShortcut>{preset.whenLabel}</MenuShortcut>
414
+ <MenuItemDetail>{preset.whenLabel}</MenuItemDetail>
415
</MenuItem>
416
))}
417
{presets.length > 0 ? <MenuSeparator /> : null}
apps/web/src/components/ui/menu.tsx
+13
@@ -307,6 +307,18 @@ function MenuShortcut({ className, ...props }: React.ComponentProps<"kbd">) {
307
);
308
}
309
310
+// Trailing value on a menu row, such as the time a snooze preset wakes at.
311
+// Reads as text at the row's size; MenuShortcut is only for key chords.
312
+function MenuItemDetail({ className, ...props }: React.ComponentProps<"span">) {
313
+ return (
314
+ <span
315
+ className={cn("ms-auto shrink-0 ps-4 text-secondary-label tabular-nums", className)}
316
+ data-slot="menu-item-detail"
317
+ {...props}
318
+ />
319
+ );
320
+}
321
+
322
function MenuSub(props: MenuPrimitive.SubmenuRoot.Props) {
323
return <MenuPrimitive.SubmenuRoot data-slot="menu-sub" {...props} />;
324
}
@@ -390,6 +402,7 @@ export {
402
MenuGroupLabel as DropdownMenuLabel,
403
MenuSeparator,
404
MenuSeparator as DropdownMenuSeparator,
405
+ MenuItemDetail,
406
MenuShortcut,
407
MenuShortcut as DropdownMenuShortcut,
408
MenuSub,