FIX: Alignment of user dropdown menu icons

This commit is contained in:
Kris 2018-06-19 15:38:06 -04:00
parent 35a645c71f
commit b637b57e4f
2 changed files with 17 additions and 9 deletions

View File

@ -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 })))

View File

@ -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;