diff --git a/resources/assets/javascripts/bootstrap/tooltip.js b/resources/assets/javascripts/bootstrap/tooltip.js index 2a7d2f96555dc9ae987cf073a1c1fd8304401cf3..2c87cbd3bdc382c189061acaaa189206d012d5f6 100644 --- a/resources/assets/javascripts/bootstrap/tooltip.js +++ b/resources/assets/javascripts/bootstrap/tooltip.js @@ -7,7 +7,7 @@ var timeout = null; STUDIP.Tooltip.threshold = 6; - +/* $(document).on('mouseenter mouseleave focusin focusout', '[data-tooltip],.tooltip:has(.tooltip-content)', function(event) { let data = $(this).data(); const visible = event.type === 'mouseenter' || event.type === 'focusin'; @@ -32,3 +32,4 @@ $(document).on('mouseenter mouseleave focusin focusout', '[data-tooltip],.toolti }).on('mouseleave focusout', '.studip-tooltip', function() { $(this).hide(); }); +*/ diff --git a/resources/assets/stylesheets/scss/tooltip.scss b/resources/assets/stylesheets/scss/tooltip.scss index 66092a3500b2460d9c646fdcf6697581423de574..114b596c0e99696408bb72305cd80db1b673ce86 100644 --- a/resources/assets/stylesheets/scss/tooltip.scss +++ b/resources/assets/stylesheets/scss/tooltip.scss @@ -42,7 +42,7 @@ bottom: 100%; display: inline-block; left: 50%; - margin-left: -129px; - width: 230px; + margin-left: -($grid-element-width) / 2 - 10px; + width: $grid-element-width; } }