@@ -208,10 +208,10 @@ export function FileTab(props: Readonly<Props>) {
208
208
// alerts only work on non-docker projects (for now) -- #7077
209
209
const status_alerts : string [ ] =
210
210
! onCoCalcDocker && name === "info"
211
- ? ( project_status
211
+ ? project_status
212
212
?. get ( "alerts" )
213
213
?. map ( ( a ) => a . get ( "type" ) )
214
- . toJS ( ) ?? [ ] )
214
+ . toJS ( ) ?? [ ]
215
215
: [ ] ;
216
216
217
217
const other_settings = useTypedRedux ( "account" , "other_settings" ) ;
@@ -294,8 +294,8 @@ export function FileTab(props: Readonly<Props>) {
294
294
flyout === active_flyout
295
295
? COLORS . PROJECT . FIXED_LEFT_ACTIVE
296
296
: active_flyout == null
297
- ? COLORS . GRAY_L
298
- : COLORS . GRAY_L0 ;
297
+ ? COLORS . GRAY_L
298
+ : COLORS . GRAY_L0 ;
299
299
const bg = flyout === active_flyout ? COLORS . GRAY_L0 : undefined ;
300
300
301
301
return (
@@ -335,7 +335,6 @@ export function FileTab(props: Readonly<Props>) {
335
335
// how to read: default color -> style for component -> override color if there is activity
336
336
const icon_style : CSSProperties = {
337
337
marginRight : "2px" ,
338
- marginLeft : "-10px" ,
339
338
color : COLORS . FILE_ICON ,
340
339
...props . iconStyle ,
341
340
...( has_activity ? { color : "orange" } : undefined ) ,
@@ -356,7 +355,7 @@ export function FileTab(props: Readonly<Props>) {
356
355
357
356
const icon =
358
357
path != null
359
- ? ( file_options ( path ) ?. icon ?? "code-o" )
358
+ ? file_options ( path ) ?. icon ?? "code-o"
360
359
: FIXED_PROJECT_TABS [ name ! ] . icon ;
361
360
362
361
const tags =
@@ -413,7 +412,12 @@ export function FileTab(props: Readonly<Props>) {
413
412
>
414
413
< div
415
414
className = "cc-project-fixedtab"
416
- style = { { textAlign : "center" , width : "100%" } }
415
+ style = { {
416
+ textAlign : "center" ,
417
+ width : "100%" ,
418
+ paddingLeft : "8px" ,
419
+ paddingRight : "8px" ,
420
+ } }
417
421
>
418
422
{ btnLeft }
419
423
</ div >
0 commit comments