A platform for community discussion. Free, open, simple.
FIX: Alignment of user dropdown menu icons
Krisb637b57e4f9a
diff --git a/app/assets/javascripts/discourse/widgets/user-menu.js.es6 b/app/assets/javascripts/discourse/widgets/user-menu.js.es6index a4b06e2ef3f..69d987db8f6 100644--- a/app/assets/javascripts/discourse/widgets/user-menu.js.es6+++ b/app/assets/javascripts/discourse/widgets/user-menu.js.es6@@ -94,7 +94,7 @@ createWidget("user-menu-links", {});return h("ul.menu-links-row", [- links.map(l => h("li", this.attach("link", l))),+ links.map(l => h("li.user", this.attach("link", l))),h("li.glyphs",glyphs.map(l => this.attach("link", $.extend(l, { hideLabel: true })))diff --git a/app/assets/stylesheets/common/base/menu-panel.scss b/app/assets/stylesheets/common/base/menu-panel.scssindex 169c9b9f628..18c5083e8da 100644--- a/app/assets/stylesheets/common/base/menu-panel.scss+++ b/app/assets/stylesheets/common/base/menu-panel.scss@@ -341,13 +341,18 @@ div.menu-links-header {border-collapse: separate;border-spacing: 0 0.5em;.menu-links-row {- display: table-row;- li.glyphs {- text-align: right;- a {- display: inline-flex;- min-width: 15px;- justify-content: center;+ display: flex;+ li {+ display: inline-flex;+ align-items: center;+ flex-wrap: wrap;+ &.user {+ margin-right: auto;+ }+ &.glyphs {+ flex-wrap: wrap;+ text-align: right;+ max-width: 65%; //IE11}}}@@ -357,7 +362,7 @@ div.menu-links-header {outline: none;}a {- padding: 0.5em;+ padding: 0.3em 0.5em;}a.user-activity-link {max-width: 150px;@@ -366,6 +371,9 @@ div.menu-links-header {overflow: hidden;text-overflow: ellipsis;margin: -0.5em 0;+ @media screen and (max-width: 350px) {+ max-width: 125px;+ }}li {display: table-cell;