Skip to content

Commit

Permalink
Merge pull request #1274 from campersau/patch_btn
Browse files Browse the repository at this point in the history
Convert patch to button and remove old patch tooltip css
  • Loading branch information
campersau authored Feb 9, 2020
2 parents dc60a9d + a13f39c commit 5c01beb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 29 deletions.
3 changes: 1 addition & 2 deletions components/staging/staging.html
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,7 @@
<span class="deletions" data-bind="text: deletions"></span>
<span class="modified" data-bind="visible: modified">Modified</span>
<span class="conflict" data-bind="visible: conflict"><span class="temporary">Conflicts</span><span class="launchmergetool explanation" data-bind="visible: mergeTool, click: launchMergeTool">Launch Merge Tool</span><span class="markresolved explanation" data-bind="click: resolveConflict">Mark as Resolved</span></span>
<span class="patch bootstrap-tooltip" data-bind="visible: isShowPatch(), click: patchClick"
data-toggle="tooltip" data-placement="top" title="Patch changes">Patch</span>
<button class="patch btn bootstrap-tooltip" data-bind="visible: isShowPatch(), click: patchClick" data-toggle="tooltip" data-placement="top" title="Patch changes">Patch</button>
<button class="ignore btn bootstrap-tooltip" data-bind="html: $parent.ignoreIcon, click: ignoreFile" data-toggle="tooltip" data-placement="top" title="Add to .gitignore"></button>
<button class="discard btn bootstrap-tooltip" data-bind="html: $parent.discardIcon, click: discardChanges" data-toggle="tooltip" data-placement="top" title="Discard changes"></button>
<!-- ko if: isShowingDiffs -->
Expand Down
29 changes: 2 additions & 27 deletions components/staging/staging.less
Original file line number Diff line number Diff line change
Expand Up @@ -85,20 +85,6 @@
}
}

.ignore + .tooltip {
.tooltip-inner {
background: #55f;
color: rgba(255, 255, 255, 0.9);
}
.tooltip-arrow {
bottom: 0;
left: 50%;
margin-left: -5px;
border-width: 5px 5px 0;
border-top-color: #55f;
}
}

.patch {
background: #279124;
color: rgba(255, 255, 255, 0.9);
Expand All @@ -108,24 +94,13 @@
padding-right: 5px;
cursor: pointer;
font-weight: bold;

&:focus,
&:hover {
background: #279124;
color: rgba(255, 255, 255, 0.9);
}
}
.patch + .tooltip {
.tooltip-inner {
background: #279124;
color: rgba(255, 255, 255, 0.9);
}
.tooltip-arrow {
bottom: 0;
left: 50%;
margin-left: -5px;
border-width: 5px 5px 0;
border-top-color: #279124;
}
}

.files {
position: relative;
Expand Down

0 comments on commit 5c01beb

Please sign in to comment.