Limit projects dropdown width to fit autocompleter (#6125)

[ci skip]
pull/6126/head
Henriette Dinger 7 years ago committed by Oliver Günther
parent 004175df20
commit d95a990641
  1. 2
      app/assets/stylesheets/content/menus/_project_autocompletion.sass
  2. 2
      app/assets/stylesheets/layout/_top_menu.sass
  3. 13
      app/assets/stylesheets/layout/_top_menu_mobile.sass

@ -5,7 +5,7 @@
.project-search-results
position: absolute
left: -1px
width: 400px !important
width: 400px
background: white
@include default-font($header-drop-down-projects-search-font-color, 13px)

@ -96,7 +96,7 @@
li
float: none
> ul.drop-down--projects
min-width: 400px
width: 400px
left: 0
box-shadow: none

@ -58,7 +58,8 @@
font-size: 1.25rem !important
vertical-align: text-bottom
li > ul.drop-down--projects
min-width: 0
width: 100vw
border-right: none
#account-nav-right
> li
@ -105,7 +106,7 @@
// Viewport minus #account-nav-right when logged out (french: Connexion)
max-width: calc(100vW - 150px)
ul
width: 100vw
width: 100vw !important
border: none
top: $header-height-mobile
@ -113,5 +114,9 @@
width: 100vw !important
left: 0 !important
border-right: 0
.select2-search:before
right: 44px
.project-menu-autocomplete--input-container
border-right: none !important
.project-menu-autocomplete--results
border-bottom: 2px solid $header-drop-down-border-color !important

Loading…
Cancel
Save