@@ -1235,25 +1235,27 @@ function AssistantChangedFilesSectionInner({
12351235 ) ;
12361236 const setExpanded = useUiStateStore ( ( store ) => store . setThreadChangedFilesExpanded ) ;
12371237 const summaryStat = summarizeTurnDiffStats ( checkpointFiles ) ;
1238- const changedFileCountLabel = String ( checkpointFiles . length ) ;
12391238
12401239 return (
1241- < div className = "mt-2 rounded-lg border border-border/80 bg-card/45 p-2.5 " >
1242- < div className = "sticky top-2 z-10 mb-1.5 flex items-center justify-between gap-2 bg-[color-mix(in_srgb,var(--card)_45%,var(--background))] before:absolute before:inset-x-0 before:-top-2 before:h-2 before:bg-[color-mix(in_srgb,var(--card)_45%,var(--background))] before:content-[''] " >
1243- < p className = "text-[10px] uppercase tracking-[0.12em] text-muted- foreground/65 " >
1244- < span > Changed files ( { changedFileCountLabel } ) </ span >
1240+ < div className = "mt-4 rounded-2xl border border-input bg-background p-2 pt-4 shadow-xs/5 not-dark:bg-clip-padding dark:bg-input/32 " >
1241+ < div className = "mb-3 flex items-center justify-between gap-2 px-2 " >
1242+ < p className = "flex self-start items-center gap-1 font-medium text-foreground text-xs leading-4 " >
1243+ < span > { checkpointFiles . length } changed files </ span >
12451244 { hasNonZeroStat ( summaryStat ) && (
1246- < >
1247- < span className = "mx-1" > •</ span >
1248- < DiffStatLabel additions = { summaryStat . additions } deletions = { summaryStat . deletions } />
1249- </ >
1245+ < DiffStatLabel
1246+ additions = { summaryStat . additions }
1247+ className = "text-xs leading-4"
1248+ deletions = { summaryStat . deletions }
1249+ layout = "inline"
1250+ />
12501251 ) }
12511252 </ p >
12521253 < div className = "flex items-center gap-1.5" >
12531254 < Button
12541255 type = "button"
12551256 size = "xs"
12561257 variant = "outline"
1258+ className = "px-1.5"
12571259 data-scroll-anchor-ignore
12581260 onClick = { ( ) => setExpanded ( routeThreadKey , turnSummary . turnId , ! allDirectoriesExpanded ) }
12591261 >
@@ -1263,6 +1265,7 @@ function AssistantChangedFilesSectionInner({
12631265 type = "button"
12641266 size = "xs"
12651267 variant = "outline"
1268+ className = "px-1.5"
12661269 onClick = { ( ) => onOpenTurnDiff ( turnSummary . turnId , checkpointFiles [ 0 ] ?. path ) }
12671270 >
12681271 View diff
0 commit comments