1
0
mirror of https://github.com/flarum/core.git synced 2025-07-24 18:21:33 +02: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:
julakali
2020-05-16 02:10:40 +02:00
committed by GitHub
parent 11fb591a52
commit 26f251b497
3 changed files with 2 additions and 2 deletions

View File

@@ -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();
}
}