Mediawiki:common.js
| Строка 215: | Строка 215: | ||
duration: [200, 150], | duration: [200, 150], | ||
delay: [0, 50], | delay: [0, 50], | ||
appendTo: | appendTo: document.body, | ||
boundary: 'viewport', | boundary: 'viewport', | ||
popperOptions: { | popperOptions: { | ||
strategy: 'fixed', | |||
modifiers: [ | |||
{ | |||
name: 'preventOverflow', | |||
options: { | |||
boundary: 'viewport', | |||
padding: 20, | |||
altAxis: true, | |||
altBoundary: true | |||
} | |||
}, | |||
{ | |||
name: 'flip', | |||
options: { | |||
fallbackPlacements: ['bottom', 'left', 'right'] | |||
} | |||
}, | |||
{ | |||
name: 'computeStyles', | |||
options: { adaptive: false } | |||
} | |||
] | |||
}, | |||
onShow: function(instance) { | onShow: function(instance) { | ||
document.querySelectorAll('[data-tippy-root]').forEach(function(tooltip) { | document.querySelectorAll('[data-tippy-root]').forEach(function(tooltip) { | ||