Skip to content

Commit

Permalink
EZP-30308: User menu changes width depending on user name length (#908)
Browse files Browse the repository at this point in the history
* EZP-30308: Fix user menu width

* Add white-space: nowrap
  • Loading branch information
tischsoic authored and Łukasz Serwatka committed Mar 19, 2019
1 parent ca3678a commit c538e51
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/bundle/Resources/public/scss/_user-menu.scss
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,16 @@
}

&__items {
display: block;
position: absolute;
top: 100%;
right: 0;
min-width: 100%;
background-color: $ez-white;
box-shadow: 0 2px 4px 0 rgba(0,0,0,.45);
height: auto;
transform-origin: top center;
transition: all .2s $ez-admin-transition;
white-space: nowrap;

&--hidden {
height: 0;
Expand All @@ -57,7 +58,7 @@
&__item {
width: 100%;
cursor: pointer;
padding-left: 1.5rem;
padding: 0 1.5rem;

.nav-link {
color: $ez-black;
Expand Down

0 comments on commit c538e51

Please sign in to comment.