mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 16:23:44 +08:00
UX: prevent user menu overflow on tiny screens (#15964)
This commit is contained in:
parent
af73405958
commit
c9419b51a3
|
@ -394,6 +394,9 @@
|
||||||
grid-gap: 0 1em;
|
grid-gap: 0 1em;
|
||||||
a {
|
a {
|
||||||
@include ellipsis;
|
@include ellipsis;
|
||||||
|
> div {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
button {
|
button {
|
||||||
span:not(.relative-date) {
|
span:not(.relative-date) {
|
||||||
|
|
|
@ -51,10 +51,10 @@
|
||||||
// accounts for menu "ears" 4px + border 1px
|
// accounts for menu "ears" 4px + border 1px
|
||||||
padding: 0.75em calc(0.5em + 4px + 1px);
|
padding: 0.75em calc(0.5em + 4px + 1px);
|
||||||
margin: 0.25em;
|
margin: 0.25em;
|
||||||
@media screen and (max-height: 380px) {
|
@media screen and (max-height: 500px) {
|
||||||
// reduce padding to avoid scroll
|
// reduce padding to avoid scroll
|
||||||
padding-top: 0.5em;
|
padding-top: 0.25em;
|
||||||
padding-bottom: 0.5em;
|
padding-bottom: 0.25em;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user