Skip to content

Commit

Permalink
Display settings to right
Browse files Browse the repository at this point in the history
Also rename style file name to match component name
  • Loading branch information
tidy-dev committed Sep 29, 2022
1 parent c59263b commit a0e9ea9
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 12 deletions.
22 changes: 11 additions & 11 deletions app/src/ui/open-pull-request/pull-request-files-changed.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -217,17 +217,17 @@ export class PullRequestFilesChanged extends React.Component<
private renderHeader() {
return (
<div className="files-changed-header">
<div>Showing changes from all commits</div>
<span>
<DiffOptions
isInteractiveDiff={false}
hideWhitespaceChanges={this.props.hideWhitespaceInDiff}
onHideWhitespaceChangesChanged={this.onHideWhitespaceInDiffChanged}
showSideBySideDiff={this.props.showSideBySideDiff}
onShowSideBySideDiffChanged={this.onShowSideBySideDiffChanged}
onDiffOptionsOpened={this.onDiffOptionsOpened}
/>
</span>
<div className="commits-displayed">
Showing changes from all commits
</div>
<DiffOptions
isInteractiveDiff={false}
hideWhitespaceChanges={this.props.hideWhitespaceInDiff}
onHideWhitespaceChangesChanged={this.onHideWhitespaceInDiffChanged}
showSideBySideDiff={this.props.showSideBySideDiff}
onShowSideBySideDiffChanged={this.onShowSideBySideDiffChanged}
onDiffOptionsOpened={this.onDiffOptionsOpened}
/>
</div>
)
}
Expand Down
2 changes: 1 addition & 1 deletion app/styles/_ui.scss
Original file line number Diff line number Diff line change
Expand Up @@ -100,5 +100,5 @@
@import 'ui/discard-changes-retry';
@import 'ui/_git-email-not-found-warning';
@import 'ui/_branch-select';
@import 'ui/_pull-request-diff';
@import 'ui/_popover-dropdown';
@import 'ui/_pull-request-files-changed';
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@
.files-changed-header {
padding: var(--spacing);
border-bottom: var(--base-border);
display: flex;

.commits-displayed {
flex-grow: 1;
}
}

.files-diff-viewer {
Expand Down

0 comments on commit a0e9ea9

Please sign in to comment.