File tree Expand file tree Collapse file tree 3 files changed +35
-13
lines changed
apps/desktop/src/components Expand file tree Collapse file tree 3 files changed +35
-13
lines changed Original file line number Diff line number Diff line change 5
5
import BranchesViewBranch from ' $components/BranchesViewBranch.svelte' ;
6
6
import BranchesViewPr from ' $components/BranchesViewPR.svelte' ;
7
7
import BranchesViewStack from ' $components/BranchesViewStack.svelte' ;
8
+ import ConfigurableScrollableContainer from ' $components/ConfigurableScrollableContainer.svelte' ;
8
9
import PrBranchView from ' $components/PRBranchView.svelte' ;
9
10
import ReduxResult from ' $components/ReduxResult.svelte' ;
10
11
import Resizer from ' $components/Resizer.svelte' ;
400
401
{/if }
401
402
402
403
{#if ! isNonLocalPr }
403
- <SelectionView testId ={TestId .BranchesSelectionView } {projectId } {selectionId } />
404
+ <div class =" preview-selection" >
405
+ <ConfigurableScrollableContainer zIndex =" var(--z-lifted)" >
406
+ <SelectionView
407
+ testId ={TestId .BranchesSelectionView }
408
+ {projectId }
409
+ {selectionId }
410
+ notClosable
411
+ />
412
+ </ConfigurableScrollableContainer >
413
+ </div >
404
414
{/if }
405
415
</div >
416
+
406
417
<Scrollbar viewport ={rightWrapper } horz />
407
418
</div >
408
419
</div >
484
495
border-bottom : 1 px solid var (--clr-border-2 );
485
496
background-color : var (--clr-bg-1 );
486
497
}
498
+
499
+ .preview-selection {
500
+ display : flex;
501
+ position : relative;
502
+ flex : 1 ;
503
+ flex-direction : column;
504
+ min-height : 100 % ;
505
+ overflow : hidden;
506
+ }
487
507
</style >
Original file line number Diff line number Diff line change 13
13
.select-some {
14
14
display : flex;
15
15
z-index : 0 ;
16
- position : relative;
16
+ position : absolute;
17
+ top : 50 % ;
18
+ left : 50 % ;
17
19
flex-direction : column;
18
20
align-items : center;
19
21
justify-content : center;
20
- width : 100 % ;
21
- height : 100 % ;
22
- padding : 40 px 0 ;
23
- overflow : hidden;
22
+ transform : translate (-50 % , -50 % );
24
23
25
24
&:after {
26
25
z-index : -1 ;
33
32
border-radius : 100 % ;
34
33
background-color : red;
35
34
background : radial-gradient (var (--clr-bg-2 ) 10 % , oklch (from var (--clr-bg-2 ) l c h / 0 ) 50 % );
36
- /* background: radial-gradient(red 10%, oklch(from red l c h / 0) 50%); */
37
35
content : '' ;
38
36
transition : opacity 0.1 s ;
39
37
}
Original file line number Diff line number Diff line change 18
18
draggableFiles? : boolean ;
19
19
diffOnly? : boolean ;
20
20
onclose? : () => void ;
21
+ notClosable? : boolean ;
21
22
testId? : string ;
22
23
bottomBorder? : boolean ;
23
24
};
28
29
draggableFiles : draggable,
29
30
diffOnly,
30
31
onclose,
32
+ notClosable,
31
33
testId,
32
34
bottomBorder
33
35
}: Props = $props ();
81
83
isHeader
82
84
executable ={!! isExecutable }
83
85
listMode =" list"
84
- onCloseClick ={() => {
85
- if (idSelection ) {
86
- idSelection .remove (selectedFile .path , selectedFile );
87
- }
88
- onclose ?.();
89
- }}
86
+ onCloseClick ={notClosable
87
+ ? undefined
88
+ : () => {
89
+ if (idSelection ) {
90
+ idSelection .remove (selectedFile .path , selectedFile );
91
+ }
92
+ onclose ?.();
93
+ }}
90
94
/>
91
95
{/if }
92
96
<UnifiedDiffView
You can’t perform that action at this time.
0 commit comments