Skip to content

Commit 6fb9866

Browse files
committed
Final style tuning
1 parent 3dbb23d commit 6fb9866

File tree

6 files changed

+13
-8
lines changed

6 files changed

+13
-8
lines changed

src/components/ActionButton.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
import { LabIcon } from '@jupyterlab/ui-components';
12
import * as React from 'react';
23
import { classes } from 'typestyle';
3-
import { LabIcon } from '@jupyterlab/ui-components';
44
import { actionButtonStyle } from '../style/ActionButtonStyle';
55

66
/**
@@ -45,7 +45,7 @@ export const ActionButton: React.FunctionComponent<IActionButtonProps> = (
4545
title={title}
4646
onClick={onClick}
4747
>
48-
{LabIcon.resolveReact({ icon })}
48+
<LabIcon.resolveReact icon={icon} elementPosition="center" tag="span" />
4949
</button>
5050
);
5151
};

src/components/FilePath.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export const FilePath: React.FunctionComponent<IFilePathProps> = (
3939
<React.Fragment>
4040
<LabIcon.resolveReact
4141
icon={props.filetype.icon}
42-
iconClass={classes(props.filetype.iconClass, fileIconStyle)}
42+
className={classes(props.filetype.iconClass, fileIconStyle)}
4343
elementPosition="center"
4444
tag="span"
4545
/>

src/style/FileItemStyle.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,5 @@ export const fileButtonStyle = style({
7070
});
7171

7272
export const gitMarkBoxStyle = style({
73-
flex: '0 0 auto',
74-
margin: 'auto 8px auto 4px'
73+
flex: '0 0 auto'
7574
});

src/style/FilePathStyle.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ import { style } from 'typestyle';
33
export const fileIconStyle = style({
44
flex: '0 0 auto',
55
marginRight: '4px',
6-
minHeight: '16px',
7-
padding: '0px 8px'
6+
minHeight: '16px'
87
});
98

109
export const fileLabelStyle = style({

src/style/GitStageStyle.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,5 +55,6 @@ export const changeStageButtonStyle = style({
5555
height: '13px',
5656
width: '12px',
5757
border: 'none',
58-
outline: 'none'
58+
outline: 'none',
59+
paddingLeft: '0px'
5960
});

src/style/Toolbar.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,12 @@ export const toolbarButtonClass = style({
106106
},
107107
'&:active': {
108108
backgroundColor: 'var(--jp-layout-color3)'
109+
},
110+
111+
'& span': {
112+
// Set icon width and centers it
113+
margin: 'auto',
114+
width: '16px'
109115
}
110116
}
111117
});

0 commit comments

Comments
 (0)