Skip to content

Commit f189d57

Browse files
committed
fix: align branch dropdown with git panel branch button
1 parent 01175ba commit f189d57

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/extensions/default/Git/src/Branch.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,9 @@ define(function (require, exports) {
357357
$dropdown
358358
.css({
359359
left: anchorOffset.left,
360+
// #git-branch-dropdown carries a negative margin-left meant for the
361+
// sidebar toggle alignment, neutralize it so left matches the anchor
362+
"margin-left": 0,
360363
// the .dropdown-menu class positions with "top: 100%", it has to be
361364
// explicitly overridden or the bottom positioning below is over-constrained
362365
top: "auto",

0 commit comments

Comments
 (0)