Fix user dropdown menu with long texts
authorRigel Kent <sendmemail@rigelk.eu>
Wed, 12 Feb 2020 15:58:01 +0000 (16:58 +0100)
committerRigel Kent <sendmemail@rigelk.eu>
Wed, 12 Feb 2020 15:58:03 +0000 (16:58 +0100)
closes #2480

client/src/app/menu/menu.component.html
client/src/sass/application.scss
client/src/sass/bootstrap.scss

index b99c7308e0116f03375f0aaa4ec819c2f39e77b0..91422df77b76c9af20659aed8aea59beeaf6e577 100644 (file)
@@ -11,7 +11,7 @@
           <div class="logged-in-username">{{ user.username }}</div>
         </div>
 
-        <div class="logged-in-more" ngbDropdown placement="bottom-right auto">
+        <div class="logged-in-more" ngbDropdown placement="bottom-right auto" container="body">
           <my-global-icon iconName="more-vertical" ngbDropdownToggle role="button"></my-global-icon>
 
           <div ngbDropdownMenu>
index fa245223113a01e7536d109cae0cb439d329a27f..995cc6025e65b38dd063d0e1c03fe0a2bf7452fd 100644 (file)
@@ -220,6 +220,15 @@ table {
   font-weight: $font-semibold;
 }
 
+.dropdown-item {
+  @include dropdown-with-icon-item;
+
+  my-global-icon {
+    width: 22px;
+    height: 22px;
+  }
+}
+
 @media screen and (max-width: 1600px) {
   .main-col {
     &.expanded {
index 330882fe448a7a8e02403c2e56e48e4b8fa3fddf..2aca8c380e789ce6b36de38aea642a9b910abd9c 100644 (file)
@@ -18,6 +18,10 @@ $icon-font-path: '~@neos21/bootstrap3-glyphicons/assets/fonts/';
   }
 }
 
+.dropdown {
+  z-index: 10001 !important;
+}
+
 .dropdown-menu {
   border-radius: 3px;
   box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2);