Skip to content

Commit 8192bc8

Browse files
fcollonvaltelamonian
authored andcommitted
Fix some styling issues
1 parent aa4e0c6 commit 8192bc8

File tree

4 files changed

+23
-22
lines changed

4 files changed

+23
-22
lines changed

src/components/FileItem.tsx

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -272,26 +272,26 @@ export class FileItem extends React.Component<IFileItemProps, {}> {
272272
title={this.props.file.to}
273273
>
274274
{extractFilename(this.props.file.to)}
275-
<span className={this.getFileChangedLabelClass(this.props.file.y)}>
276-
{this.getFileChangedLabel(this.props.file.y)}
277-
</span>
278-
{this.props.stage === 'Changed' && (
279-
<React.Fragment>
280-
<button
281-
className={`jp-Git-button ${this.getDiscardFileIconClass()}`}
282-
title={'Discard this change'}
283-
onClick={() => {
284-
this.discardSelectedFileChanges();
285-
}}
286-
/>
287-
{isDiffSupported(this.props.file.to) &&
288-
this.diffButton({ specialRef: 'WORKING' })}
289-
</React.Fragment>
290-
)}
291-
{this.props.stage === 'Staged' &&
292-
isDiffSupported(this.props.file.to) &&
293-
this.diffButton({ specialRef: 'INDEX' })}
294275
</span>
276+
<span className={this.getFileChangedLabelClass(this.props.file.y)}>
277+
{this.getFileChangedLabel(this.props.file.y)}
278+
</span>
279+
{this.props.stage === 'Changed' && (
280+
<React.Fragment>
281+
<button
282+
className={`jp-Git-button ${this.getDiscardFileIconClass()}`}
283+
title={'Discard this change'}
284+
onClick={() => {
285+
this.discardSelectedFileChanges();
286+
}}
287+
/>
288+
{isDiffSupported(this.props.file.to) &&
289+
this.diffButton({ specialRef: 'WORKING' })}
290+
</React.Fragment>
291+
)}
292+
{this.props.stage === 'Staged' &&
293+
isDiffSupported(this.props.file.to) &&
294+
this.diffButton({ specialRef: 'INDEX' })}
295295
</li>
296296
);
297297
}

src/style/BranchHeaderStyle.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ import { style } from 'typestyle';
33
export const branchStyle = style({
44
zIndex: 1,
55
textAlign: 'center',
6-
overflowY: 'auto'
6+
overflowY: 'auto',
7+
minHeight: 29
78
});
89

910
export const selectedHeaderStyle = style({

src/style/FileItemStyle.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { style } from 'typestyle';
33
export const fileStyle = style({
44
display: 'flex',
55
flexDirection: 'row',
6-
flexWrap: 'wrap',
76
color: 'var(--jp-ui-font-color1)',
87
lineHeight: 'var(--jp-private-running-item-height)',
98
paddingLeft: '4px',

src/style/HistorySideBarStyle.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@ import { style } from 'typestyle';
33
export const historySideBarStyle = style({
44
display: 'flex',
55
flexDirection: 'column',
6-
paddingLeft: 0
6+
paddingLeft: 0,
7+
overflowY: 'scroll'
78
});

0 commit comments

Comments
 (0)