mirror of
https://github.com/discourse/discourse.git
synced 2025-06-07 22:56:01 +08:00
UX: Larger tap areas for profile panel in user menu on mobile devices
This commit is contained in:
@ -3,6 +3,8 @@ import { createWidgetFrom } from "discourse/widgets/widget";
|
|||||||
import { Promise } from "rsvp";
|
import { Promise } from "rsvp";
|
||||||
|
|
||||||
createWidgetFrom(QuickAccessPanel, "quick-access-profile", {
|
createWidgetFrom(QuickAccessPanel, "quick-access-profile", {
|
||||||
|
tagName: "div.quick-access-panel.quick-access-profile",
|
||||||
|
|
||||||
buildKey: () => "quick-access-profile",
|
buildKey: () => "quick-access-profile",
|
||||||
|
|
||||||
hasMore() {
|
hasMore() {
|
||||||
|
@ -7,10 +7,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.panel-body {
|
.panel-body {
|
||||||
position: absolute;
|
width: 100%;
|
||||||
top: 3px;
|
|
||||||
bottom: 37px;
|
|
||||||
width: 97%;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.header-cloak {
|
.header-cloak {
|
||||||
|
@ -15,3 +15,9 @@
|
|||||||
transition: opacity 0.2s ease-out;
|
transition: opacity 0.2s ease-out;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.user-menu .quick-access-profile li:not(.show-all) {
|
||||||
|
margin: 0.5em 0 0.75em;
|
||||||
|
padding: 0.75em;
|
||||||
|
border: 1px solid $primary-low;
|
||||||
|
}
|
||||||
|
Reference in New Issue
Block a user