File tree Expand file tree Collapse file tree 6 files changed +13
-8
lines changed Expand file tree Collapse file tree 6 files changed +13
-8
lines changed Original file line number Diff line number Diff line change
1
+ import { LabIcon } from '@jupyterlab/ui-components' ;
1
2
import * as React from 'react' ;
2
3
import { classes } from 'typestyle' ;
3
- import { LabIcon } from '@jupyterlab/ui-components' ;
4
4
import { actionButtonStyle } from '../style/ActionButtonStyle' ;
5
5
6
6
/**
@@ -45,7 +45,7 @@ export const ActionButton: React.FunctionComponent<IActionButtonProps> = (
45
45
title = { title }
46
46
onClick = { onClick }
47
47
>
48
- { LabIcon . resolveReact ( { icon } ) }
48
+ < LabIcon . resolveReact icon = { icon } elementPosition = "center" tag = "span" />
49
49
</ button >
50
50
) ;
51
51
} ;
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ export const FilePath: React.FunctionComponent<IFilePathProps> = (
39
39
< React . Fragment >
40
40
< LabIcon . resolveReact
41
41
icon = { props . filetype . icon }
42
- iconClass = { classes ( props . filetype . iconClass , fileIconStyle ) }
42
+ className = { classes ( props . filetype . iconClass , fileIconStyle ) }
43
43
elementPosition = "center"
44
44
tag = "span"
45
45
/>
Original file line number Diff line number Diff line change @@ -70,6 +70,5 @@ export const fileButtonStyle = style({
70
70
} ) ;
71
71
72
72
export const gitMarkBoxStyle = style ( {
73
- flex : '0 0 auto' ,
74
- margin : 'auto 8px auto 4px'
73
+ flex : '0 0 auto'
75
74
} ) ;
Original file line number Diff line number Diff line change @@ -3,8 +3,7 @@ import { style } from 'typestyle';
3
3
export const fileIconStyle = style ( {
4
4
flex : '0 0 auto' ,
5
5
marginRight : '4px' ,
6
- minHeight : '16px' ,
7
- padding : '0px 8px'
6
+ minHeight : '16px'
8
7
} ) ;
9
8
10
9
export const fileLabelStyle = style ( {
Original file line number Diff line number Diff line change @@ -55,5 +55,6 @@ export const changeStageButtonStyle = style({
55
55
height : '13px' ,
56
56
width : '12px' ,
57
57
border : 'none' ,
58
- outline : 'none'
58
+ outline : 'none' ,
59
+ paddingLeft : '0px'
59
60
} ) ;
Original file line number Diff line number Diff line change @@ -106,6 +106,12 @@ export const toolbarButtonClass = style({
106
106
} ,
107
107
'&:active' : {
108
108
backgroundColor : 'var(--jp-layout-color3)'
109
+ } ,
110
+
111
+ '& span' : {
112
+ // Set icon width and centers it
113
+ margin : 'auto' ,
114
+ width : '16px'
109
115
}
110
116
}
111
117
} ) ;
You can’t perform that action at this time.
0 commit comments