File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
apps/desktop/src/components Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change 58
58
return ' gitbutler/workspace' ;
59
59
});
60
60
61
- const isNotInWorkspace = $derived (currentBranchName !== ' gitbutler/workspace' );
61
+ const isNotInWorkspace = $derived (
62
+ currentMode ?.type !== ' OpenWorkspace' && currentMode ?.type !== ' Edit'
63
+ );
62
64
const [setBaseBranchTarget, targetBranchSwitch] = baseBranchService .setTarget ;
63
65
64
66
async function switchToWorkspace() {
209
211
<div class =" chrome-current-branch" >
210
212
<div class =" chrome-current-branch__content" >
211
213
<Icon name =" branch-remote" color =" var(--clr-text-2)" />
212
- <span class ="text-12 text-semibold clr-text-1" >{currentBranchName }</span >
214
+ <span class ="text-12 text-semibold clr-text-1 truncate " >{currentBranchName }</span >
213
215
{#if isNotInWorkspace }
214
216
<span class =" text-12 text-semibold clr-text-2" > read-only </span >
215
217
{/if }
353
355
.chrome-selector-wrapper {
354
356
display : flex ;
355
357
position : relative ;
358
+ overflow : hidden ;
356
359
}
357
360
358
361
:global(.chrome-header .project-selector-btn ) {
365
368
align-items : center ;
366
369
padding-right : 2px ;
367
370
gap : 6px ;
371
+ text-wrap : nowrap ;
368
372
}
369
373
370
374
.chrome-current-branch {
371
375
display : flex ;
372
376
align-items : center ;
373
377
padding : 0 10px 0 6px ;
378
+ overflow : hidden ;
374
379
border : 1px solid var (--clr-border-2 );
375
380
border-left : none ;
376
381
border-top-right-radius : 100px ;
381
386
.chrome-current-branch__content {
382
387
display : flex ;
383
388
align-items : center ;
389
+ overflow : hidden ;
384
390
gap : 4px ;
391
+ text-wrap : nowrap ;
385
392
opacity : 0.7 ;
386
393
}
387
394
393
400
.chrome-center {
394
401
display : flex ;
395
402
flex-shrink : 1 ;
403
+ overflow : hidden ;
396
404
gap : 8px ;
397
405
}
398
406
You can’t perform that action at this time.
0 commit comments