mirror of
https://github.com/imfing/hextra.git
synced 2025-09-14 01:46:53 -04:00
fix: move dir attribute to :root (#805)
This commit is contained in:

committed by
GitHub

parent
82e25c0b0d
commit
3abcde4f8e
@@ -8,7 +8,7 @@ function computeMenuTranslation(switcher, optionsElement) {
|
||||
const isOnTop = switcher.dataset.location === 'top';
|
||||
const isOnBottom = switcher.dataset.location === 'bottom';
|
||||
const isOnBottomRight = switcher.dataset.location === 'bottom-right';
|
||||
const isRTL = document.body.dir === 'rtl'
|
||||
const isRTL = document.documentElement.dir === 'rtl'
|
||||
|
||||
// Stuck on the left side of the switcher.
|
||||
let x = switcherRect.left;
|
||||
|
Reference in New Issue
Block a user