@devries-cameron20 / t3code-1 / commits / 2deea7abb0
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Prevent sidebar row labels from truncating (#4789)

Julius Marminge committed Jul 28, 2026 at 23:58 UTC 2deea7abb0f9e4df71ca10da06a8d7268a4b9d42
1 file changed +14 -6
apps/web/src/components/SidebarV2.tsx
+14 -6
@@ -213,7 +213,11 @@ function WorkingDuration(props: { startedAt: string | null }) {
213 return () => window.clearInterval(id);
214 }, [startedMs]);
215 if (Number.isNaN(startedMs)) return null;
216 - return <span className="tabular-nums">{formatWorkingDurationLabel(Date.now() - startedMs)}</span>;
216 + return (
217 + <span className="font-mono tabular-nums">
218 + {formatWorkingDurationLabel(Date.now() - startedMs)}
219 + </span>
220 + );
221 }
222
223 function SidebarV2ThreadTooltip({
@@ -881,11 +885,15 @@ const SidebarV2Row = memo(function SidebarV2Row(props: {
885 ) : (
886 <span className="flex-1" />
887 )}
884 - <span className="relative ml-auto flex h-5 min-w-8 shrink-0 items-center justify-end pl-1 text-xs">
888 + {/* The visible state owns this slot's width: status at rest,
889 + actions on hover/focus or while the popover is open. Keeping
890 + the hidden state out of flow lets the project label reclaim
891 + space without either state overlapping it. */}
892 + <span className="group/v2-status-slot relative ml-auto flex h-5 min-w-8 shrink-0 items-stretch justify-end text-xs">
893 <span
894 className={cn(
887 - "tabular-nums text-muted-foreground/65 transition-opacity group-hover/v2-row:opacity-0",
888 - snoozeMenuOpen && "opacity-0",
895 + "self-center justify-self-end tabular-nums text-muted-foreground/65 transition-opacity group-focus-within/v2-status-slot:absolute group-focus-within/v2-status-slot:right-0 group-hover/v2-row:absolute group-hover/v2-row:right-0 group-hover/v2-row:opacity-0",
896 + snoozeMenuOpen && "absolute right-0 opacity-0",
897 )}
898 >
899 {topStatus ? (
@@ -919,8 +927,8 @@ const SidebarV2Row = memo(function SidebarV2Row(props: {
927 {props.settlementSupported || showSnoozeButton ? (
928 <span
929 className={cn(
922 - "absolute inset-y-0 right-0 flex items-stretch opacity-0 transition-opacity focus-within:opacity-100 group-hover/v2-row:opacity-100",
923 - snoozeMenuOpen && "opacity-100",
930 + "absolute inset-y-0 right-0 flex items-stretch opacity-0 transition-opacity focus-within:static focus-within:opacity-100 group-hover/v2-row:static group-hover/v2-row:opacity-100",
931 + snoozeMenuOpen && "static opacity-100",
932 )}
933 >
934 {showSnoozeButton ? (