UX: Adjust admin menu to better fit short (horizontal) viewports

This commit is contained in:
Kris 2020-05-06 22:59:22 -04:00
parent 0d394e6b76
commit 33c8adda83
1 changed files with 38 additions and 0 deletions

View File

@ -217,3 +217,41 @@ sub sub {
align-items: center;
flex-wrap: wrap;
}
@media screen and (max-height: 600px) {
.topic-admin-popup-menu {
box-sizing: border-box;
width: 100%;
padding: 1em;
.header {
padding: 0;
position: relative;
.close-button {
position: absolute;
display: inline-block;
right: 0;
top: -0.1em;
width: auto;
background: transparent;
}
}
ul {
display: grid;
grid-template-columns: 1fr 1fr 1fr;
@media screen and (max-width: 550px) {
grid-template-columns: 1fr 1fr;
}
> div {
margin-right: 0.5em;
overflow: hidden;
&:nth-of-type(2) {
// move delete further from modal close
order: 12;
}
button {
@include ellipsis;
}
}
}
}
}