File tree Expand file tree Collapse file tree 2 files changed +12
-18
lines changed
apps/desktop/src/components Expand file tree Collapse file tree 2 files changed +12
-18
lines changed Original file line number Diff line number Diff line change 73
73
});
74
74
</script >
75
75
76
- <Drawer {grow } {ontoggle } {resizer } {noshrink } bottomBorder >
76
+ <Drawer {grow } {ontoggle } {resizer } {noshrink } bottomBorder ={ changes . length > 0 } >
77
77
{#snippet header ()}
78
78
<h4 class ="text-14 text-semibold truncate" >{title }</h4 >
79
79
<div class =" text-11 header-stats" >
Original file line number Diff line number Diff line change 309
309
{@const ancestorMostConflictedCommitId = getAncestorMostConflicted (commits )?.id }
310
310
311
311
<ChangedFiles
312
- title =" Changed Files "
312
+ title =" Changed files "
313
313
{projectId }
314
314
{stackId }
315
315
draggableFiles
501
501
maxWidth ={RESIZER_CONFIG .panel1 .maxWidth }
502
502
defaultValue ={RESIZER_CONFIG .panel1 .defaultValue }
503
503
syncName =" panel1"
504
+ onWidth ={(newWidth ) => {
505
+ // Update the persisted stack width when panel1 resizer changes
506
+ persistedStackWidth .set (newWidth );
507
+ }}
504
508
/>
505
509
{/ snippet }
506
510
</ReduxResult >
507
511
</div >
508
512
</ConfigurableScrollableContainer >
509
513
510
- <!-- STACK WIDTH RESIZER -->
511
- <Resizer
512
- persistId ="ui-stack-width-$ {stackId }"
513
- viewport ={stackViewEl ! }
514
- zIndex =" var(--z-lifted)"
515
- direction =" right"
516
- minWidth ={18 }
517
- maxWidth ={64 }
518
- defaultValue ={defaultStackWidth }
519
- onWidth ={(newWidth ) => {
520
- // Update the persisted stack width when resizer changes
521
- persistedStackWidth .set (newWidth );
522
- }}
523
- />
524
-
525
514
<!-- PREVIEW -->
526
515
{#if isDetailsViewOpen }
527
516
<div
582
571
{/if }
583
572
</div >
584
573
585
- <!-- DETAILS VIEW WIDTH RESIZER -->
574
+ <!-- DETAILS VIEW WIDTH RESIZER - Only show when details view is open - ->
586
575
<Resizer
587
576
viewport ={compactDiv ! }
588
577
persistId ="resizer-panel2-$ {stackId }"
681
670
flex-shrink : 0 ;
682
671
flex-direction : column;
683
672
max-height : calc (100 % - 24 px );
673
+ margin-right : 2 px ;
684
674
overflow : hidden;
685
675
border : 1 px solid var (--clr-border-2 );
686
676
border-radius : var (--radius-ml );
687
677
background-color : var (--clr-bg-1 );
688
678
box-shadow : 0 10 px 30 px 0 color (srgb 0 0 0 / 0.16 );
689
679
}
690
680
681
+ :global (.dark) .details-view {
682
+ box-shadow : 0 10 px 50 px 5 px color (srgb 0 0 0 / 0.5 );
683
+ }
684
+
691
685
.file-preview-section {
692
686
display : flex;
693
687
flex : 1 ;
You can’t perform that action at this time.
0 commit comments