Skip to content

Commit 81af784

Browse files
committed
feat: make git branch toggle button in git panel responsive
1 parent 2a3de81 commit 81af784

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

src/extensions/default/Git/src/Panel.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1271,6 +1271,7 @@ define(function (require, exports) {
12711271
const mainToolbarWidth = $mainToolbar.width();
12721272
let overFlowWidth = 540;
12731273
const breakpoints = [
1274+
{ width: 600, className: "hide-when-medium" },
12741275
{ width: overFlowWidth, className: "hide-when-small" },
12751276
{ width: 400, className: "hide-when-x-small" }
12761277
];

src/extensions/default/Git/templates/git-panel.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@
5757
</div>
5858
<!-- on right -->
5959
<div class="git-right-icons hide-when-small">
60-
<div class="git-panel-branch btn small git-available">
60+
<button type="button" class="git-panel-branch btn small git-available hide-when-medium">
6161
<i class="fas fa-code-branch"></i><span class="git-branch-name"></span>
62-
</div>
62+
</button>
6363
<div class="btn-group git-available dropup">
6464
<ul class="dropdown-menu git-remotes-dropdown"></ul>
6565
<button type="button" class="git-remotes btn small dropdown-toggle" data-toggle="dropdown" title="{{S.TOOLTIP_PICK_REMOTE}}">

0 commit comments

Comments
 (0)