@@ -166,7 +166,7 @@ export function SnapshotDetailPanel({
166166 ] ;
167167
168168 return (
169- < div className = { cn ( 'flex h-full -m-4 animate-in fade-in-0 duration-200' , className ) } >
169+ < div className = { cn ( 'flex -m-4 animate-in fade-in-0 duration-200' , className ) } >
170170 { /* Left Sidebar Navigation */ }
171171 < div className = "w-56 flex-shrink-0 bg-card rounded-lg overflow-hidden m-4 mr-0 self-start" >
172172 < div className = "p-3 border-b border-border" >
@@ -225,14 +225,14 @@ export function SnapshotDetailPanel({
225225 </ div >
226226
227227 { /* Right Content Area */ }
228- < div className = "flex-1 min-w-0 overflow-hidden p-4 flex flex-col " >
228+ < div className = "flex-1 min-w-0 p-4" >
229229 { /* Overview Tab */ }
230- < div className = { cn ( 'flex-1 overflow-y-auto' , activeTab !== 'overview' && 'hidden' ) } >
230+ < div className = { cn ( activeTab !== 'overview' && 'hidden' ) } >
231231 < OverviewTabContent snapshot = { snapshot } />
232232 </ div >
233233
234234 { /* Dependencies Tab */ }
235- < div className = { cn ( 'flex-1 overflow-y-auto' , activeTab !== 'dependencies' && 'hidden' ) } >
235+ < div className = { cn ( activeTab !== 'dependencies' && 'hidden' ) } >
236236 < DependenciesTabContent
237237 dependencies = { dependencies }
238238 loading = { loading }
@@ -252,12 +252,12 @@ export function SnapshotDetailPanel({
252252 </ div >
253253
254254 { /* Integrity Tab */ }
255- < div className = { cn ( 'flex-1 overflow-y-auto' , activeTab !== 'integrity' && 'hidden' ) } >
255+ < div className = { cn ( activeTab !== 'integrity' && 'hidden' ) } >
256256 < IntegrityTabContent snapshot = { snapshot } />
257257 </ div >
258258
259259 { /* Compare Tab */ }
260- < div className = { cn ( 'flex-1 overflow-y-auto' , activeTab !== 'compare' && 'hidden' ) } >
260+ < div className = { cn ( activeTab !== 'compare' && 'hidden' ) } >
261261 < CompareTabContent
262262 currentSnapshotId = { snapshot . id }
263263 allSnapshots = { allSnapshots }
@@ -293,33 +293,23 @@ function OverviewTabContent({ snapshot }: { snapshot: ExecutionSnapshot }) {
293293 < div >
294294 < h2 className = "text-lg font-semibold text-foreground" > Snapshot Overview</ h2 >
295295 < p className = "text-sm text-muted-foreground mt-1" >
296- { snapshot . triggerSource === 'manual' ? 'Manual capture' : 'Auto-captured on lockfile change' }
296+ { snapshot . triggerSource === 'manual'
297+ ? 'Manual capture'
298+ : 'Auto-captured on lockfile change' }
297299 </ p >
298300 </ div >
299301
300302 { /* Stats Grid */ }
301303 < div className = "grid grid-cols-2 gap-4" >
302- < StatCard
303- icon = { Clock }
304- label = "Created"
305- value = { formatDate ( snapshot . createdAt ) }
306- />
304+ < StatCard icon = { Clock } label = "Created" value = { formatDate ( snapshot . createdAt ) } />
307305 < StatCard
308306 icon = { Package }
309307 label = "Package Manager"
310308 value = { ( snapshot . lockfileType || 'Unknown' ) . toUpperCase ( ) }
311309 />
312- < StatCard
313- icon = { HardDrive }
314- label = "Storage"
315- value = { formatSize ( snapshot . compressedSize ) }
316- />
310+ < StatCard icon = { HardDrive } label = "Storage" value = { formatSize ( snapshot . compressedSize ) } />
317311 < div
318- className = { cn (
319- 'p-4 rounded-xl' ,
320- 'bg-card border border-border' ,
321- 'flex items-start gap-3'
322- ) }
312+ className = { cn ( 'p-4 rounded-xl' , 'bg-card border border-border' , 'flex items-start gap-3' ) }
323313 >
324314 < div className = "flex-shrink-0 w-10 h-10 rounded-lg bg-cyan-500/10 flex items-center justify-center" >
325315 < Shield className = "w-5 h-5 text-cyan-500" />
@@ -384,13 +374,7 @@ function StatCard({
384374 value : string ;
385375} ) {
386376 return (
387- < div
388- className = { cn (
389- 'p-4 rounded-xl' ,
390- 'bg-card border border-border' ,
391- 'flex items-start gap-3'
392- ) }
393- >
377+ < div className = { cn ( 'p-4 rounded-xl' , 'bg-card border border-border' , 'flex items-start gap-3' ) } >
394378 < div className = "flex-shrink-0 w-10 h-10 rounded-lg bg-cyan-500/10 flex items-center justify-center" >
395379 < Icon className = "w-5 h-5 text-cyan-500" />
396380 </ div >
@@ -479,11 +463,7 @@ function DependenciesTabContent({
479463 active = { showDirect }
480464 onClick = { ( ) => onShowDirectChange ( ! showDirect ) }
481465 />
482- < FilterPill
483- label = "Dev"
484- active = { showDev }
485- onClick = { ( ) => onShowDevChange ( ! showDev ) }
486- />
466+ < FilterPill label = "Dev" active = { showDev } onClick = { ( ) => onShowDevChange ( ! showDev ) } />
487467 < FilterPill
488468 label = "Postinstall"
489469 active = { showPostinstall }
@@ -511,9 +491,7 @@ function DependenciesTabContent({
511491 { directDeps . length > 0 && (
512492 < DependencyGroup title = "Direct" deps = { directDeps } variant = "primary" />
513493 ) }
514- { devDeps . length > 0 && (
515- < DependencyGroup title = "Dev" deps = { devDeps } variant = "secondary" />
516- ) }
494+ { devDeps . length > 0 && < DependencyGroup title = "Dev" deps = { devDeps } variant = "secondary" /> }
517495 { transitiveDeps . length > 0 && (
518496 < DependencyGroup title = "Transitive" deps = { transitiveDeps } variant = "muted" />
519497 ) }
0 commit comments