@@ -213,7 +213,11 @@ function WorkingDuration(props: { startedAt: string | null }) {
213213 return ( ) => window . clearInterval ( id ) ;
214214 } , [ startedMs ] ) ;
215215 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+ ) ;
217221}
218222
219223function SidebarV2ThreadTooltip ( {
@@ -881,11 +885,15 @@ const SidebarV2Row = memo(function SidebarV2Row(props: {
881885 ) : (
882886 < span className = "flex-1" />
883887 ) }
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" >
885893 < span
886894 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" ,
889897 ) }
890898 >
891899 { topStatus ? (
@@ -919,8 +927,8 @@ const SidebarV2Row = memo(function SidebarV2Row(props: {
919927 { props . settlementSupported || showSnoozeButton ? (
920928 < span
921929 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" ,
924932 ) }
925933 >
926934 { showSnoozeButton ? (
0 commit comments