set tooltip width so div is centered around triggering element (#15542)

This commit is contained in:
Nathan Reese 2017-12-13 13:32:04 -07:00 committed by GitHub
parent 1005e27522
commit c06b44584d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View file

@ -4,6 +4,7 @@
@import (reference) "~ui/styles/bootstrap/bootstrap";
@import "./react-input-range";
@import "./react-select";
@import "./pui_react";
html,
body {

View file

@ -0,0 +1,5 @@
// React 16 pushes tooltip to far left of page
// Providing width corrects the problem and centers tooltip over triggering element
.tooltip {
width: 1px;
}