mirror of
https://github.com/flarum/core.git
synced 2025-01-17 22:29:15 +01:00
Don't use body as tooltip container, allow notification area overflow (#2166)
* Don't use body as tooltip container, allow notification area overflow Badge tooltips are using container: 'body', so they can overflow the notification area. When the user navigates back while a badge tooltip is showing, the tooltip remains visible. This commit removes the body container attribute and instead allows the notificationDropDown to overflow, so badge tooltips aren't cut off. Instead, this adds overflow: hidden to NotificationList. Fixes #2118. * Remove newline
This commit is contained in:
parent
9b936d4baa
commit
f89f114fad
@ -30,6 +30,6 @@ export default class Badge extends Component {
|
||||
config(isInitialized) {
|
||||
if (isInitialized) return;
|
||||
|
||||
if (this.props.label) this.$().tooltip({ container: 'body' });
|
||||
if (this.props.label) this.$().tooltip();
|
||||
}
|
||||
}
|
||||
|
@ -1,5 +1,6 @@
|
||||
|
||||
.NotificationList {
|
||||
overflow: hidden;
|
||||
& .loading-indicator {
|
||||
height: 100px;
|
||||
}
|
||||
|
@ -1,7 +1,6 @@
|
||||
.NotificationsDropdown {
|
||||
.Dropdown-menu {
|
||||
padding: 0;
|
||||
overflow: hidden;
|
||||
|
||||
.NotificationList-content {
|
||||
max-height: 70vh;
|
||||
|
Loading…
x
Reference in New Issue
Block a user