Skip to content

Commit

Permalink
fix: Menu jumps vertically on logout (#3194)
Browse files Browse the repository at this point in the history
  • Loading branch information
tsl143 authored and kumar303 committed Sep 29, 2017
1 parent 2b60cf4 commit 3f3e0d2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/amo/components/Header/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@

.Header-button {
margin-bottom: 12px;
vertical-align: middle;
vertical-align: top;
}

.Header-developer-hub-link {
Expand All @@ -128,6 +128,7 @@
display: inline-block;
font-size: $font-size-s;
font-weight: normal;
padding-top: 4px;
text-decoration: none;
}
}
Expand Down
10 changes: 8 additions & 2 deletions src/ui/components/DropdownMenu/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@
@include text-align-start();

display: inline-block;
padding-bottom: 6px;
padding-top: 8px;
height: 27px;
padding-bottom: 2px;
padding-top: 4px;
position: relative;

// This is needed because `:hover` on mobile prevents the main button to
Expand All @@ -25,6 +26,11 @@
}
}
}

@include respond-to(medium) {
height: auto;
padding-bottom: 6px;
}
}

.DropdownMenu-button {
Expand Down

0 comments on commit 3f3e0d2

Please sign in to comment.