Use font awesome angles

This commit is contained in:
René Pfeuffer
2020-06-10 10:45:04 +02:00
parent 35c78b7ad9
commit f6916fc7e1
3 changed files with 25 additions and 12 deletions

View File

@@ -156,6 +156,7 @@ class DiffFile extends React.Component<Props, State> {
<Decoration>
<HunkDivider>
<HunkExpandLink
icon={"fa-angle-up"}
onClick={this.expandHead(expandableHunk, expandableHunk.maxExpandHeadRange)}
text={this.props.t("diff.expandHeadComplete", { count: expandableHunk.maxExpandHeadRange })}
/>
@@ -167,10 +168,12 @@ class DiffFile extends React.Component<Props, State> {
<Decoration>
<HunkDivider>
<HunkExpandLink
icon={"fa-angle-up"}
onClick={this.expandHead(expandableHunk, 10)}
text={this.props.t("diff.expandHeadByLines", { count: 10 })}
/>{" "}
<HunkExpandLink
icon={"fa-angle-double-up"}
onClick={this.expandHead(expandableHunk, expandableHunk.maxExpandHeadRange)}
text={this.props.t("diff.expandHeadComplete", { count: expandableHunk.maxExpandHeadRange })}
/>
@@ -190,6 +193,7 @@ class DiffFile extends React.Component<Props, State> {
<Decoration>
<HunkDivider>
<HunkExpandLink
icon={"fa-angle-double-down"}
onClick={this.expandBottom(expandableHunk, expandableHunk.maxExpandBottomRange)}
text={this.props.t("diff.expandBottomComplete", { count: expandableHunk.maxExpandBottomRange })}
/>
@@ -201,10 +205,12 @@ class DiffFile extends React.Component<Props, State> {
<Decoration>
<HunkDivider>
<HunkExpandLink
icon={"fa-angle-down"}
onClick={this.expandBottom(expandableHunk, 10)}
text={this.props.t("diff.expandBottomByLines", { count: 10 })}
/>{" "}
<HunkExpandLink
icon={"fa-angle-double-down"}
onClick={this.expandBottom(expandableHunk, expandableHunk.maxExpandBottomRange)}
text={this.props.t("diff.expandBottomComplete", { count: expandableHunk.maxExpandBottomRange })}
/>
@@ -223,10 +229,12 @@ class DiffFile extends React.Component<Props, State> {
<Decoration>
<HunkDivider>
<HunkExpandLink
icon={"fa-angle-down"}
onClick={this.expandBottom(expandableHunk, 10)}
text={this.props.t("diff.expandLastBottomByLines")}
/>{" "}
<HunkExpandLink
icon={"fa-angle-double-down"}
onClick={this.expandBottom(expandableHunk, expandableHunk.maxExpandBottomRange)}
text={this.props.t("diff.expandLastBottomComplete")}
/>