mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 11:15:47 +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;
|
||||
a {
|
||||
@include ellipsis;
|
||||
> div {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
button {
|
||||
span:not(.relative-date) {
|
||||
|
|
|
@ -51,10 +51,10 @@
|
|||
// accounts for menu "ears" 4px + border 1px
|
||||
padding: 0.75em calc(0.5em + 4px + 1px);
|
||||
margin: 0.25em;
|
||||
@media screen and (max-height: 380px) {
|
||||
@media screen and (max-height: 500px) {
|
||||
// reduce padding to avoid scroll
|
||||
padding-top: 0.5em;
|
||||
padding-bottom: 0.5em;
|
||||
padding-top: 0.25em;
|
||||
padding-bottom: 0.25em;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user