From: Rigel Kent Date: Wed, 12 Feb 2020 15:58:01 +0000 (+0100) Subject: Fix user dropdown menu with long texts X-Git-Tag: v2.2.0-rc.1~492 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=eb7c7a517902eae425b05d1ca9cb7f99f76ee71f;p=oweals%2Fpeertube.git Fix user dropdown menu with long texts closes #2480 --- diff --git a/client/src/app/menu/menu.component.html b/client/src/app/menu/menu.component.html index b99c7308e..91422df77 100644 --- a/client/src/app/menu/menu.component.html +++ b/client/src/app/menu/menu.component.html @@ -11,7 +11,7 @@
{{ user.username }}
-
+
diff --git a/client/src/sass/application.scss b/client/src/sass/application.scss index fa2452231..995cc6025 100644 --- a/client/src/sass/application.scss +++ b/client/src/sass/application.scss @@ -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 { diff --git a/client/src/sass/bootstrap.scss b/client/src/sass/bootstrap.scss index 330882fe4..2aca8c380 100644 --- a/client/src/sass/bootstrap.scss +++ b/client/src/sass/bootstrap.scss @@ -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);