mirror of
https://github.com/pi-hole/web.git
synced 2025-12-24 20:55:28 +00:00
Prevent tooltip from being hidden by sidebar
This commit is contained in:
@@ -92,6 +92,11 @@ var customTooltips = function(tooltip) {
|
||||
{
|
||||
width = $(document).width()-400;
|
||||
}
|
||||
// Prevent tooltip disapearing behind the sidebar
|
||||
if(tooltip.caretX < 100)
|
||||
{
|
||||
width = 100;
|
||||
}
|
||||
tooltipEl.style.opacity = 1;
|
||||
tooltipEl.style.left = position.left + width + "px";
|
||||
tooltipEl.style.top = position.top + tooltip.caretY + "px";
|
||||
|
||||
Reference in New Issue
Block a user