Skip to content

Commit 9623839

Browse files
committed
feat: git remotes dropdown consistent with branch dropdown
1 parent 18d7b73 commit 9623839

2 files changed

Lines changed: 10 additions & 4 deletions

File tree

src/extensions/default/Git/styles/git-styles.less

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1165,6 +1165,10 @@
11651165
.git-remotes-dropdown {
11661166
// don't mess with this, the dropdown menu is at the top so it should grow from bottom left to top right.
11671167
-webkit-transform-origin: 0 100%;
1168+
font-size: 14px;
1169+
.divider {
1170+
margin: 5px 1px;
1171+
}
11681172
}
11691173
.git-remotes-dropdown a {
11701174
.change-remote {
@@ -1187,9 +1191,6 @@
11871191
&:hover .hover-icon {
11881192
opacity: 1;
11891193
}
1190-
&[class$="-remote-new"] {
1191-
font-style: italic;
1192-
}
11931194
}
11941195

11951196
.dropdown-menu();

src/extensions/default/Git/templates/git-remotes-picker.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
<!-- List of remotes defined for the current local repository -->
2+
<li><a class="git-remote-new"><span>{{Strings.CREATE_NEW_REMOTE}}</span></a></li>
3+
4+
{{#remotes.length}}
5+
<li class="divider"></li>
6+
{{/remotes.length}}
7+
28
{{#remotes}}
39
<li class="remote">
410
<a href="#" data-remote-name="{{name}}" data-type="git" class="remote-name">
@@ -7,4 +13,3 @@
713
</a>
814
</li>
915
{{/remotes}}
10-
<li><a class="git-remote-new"><span>{{Strings.CREATE_NEW_REMOTE}}</span></a></li>

0 commit comments

Comments
 (0)