marquee function refaactoring
This commit is contained in:
parent
d5d25eba00
commit
7523d79dc3
6
public/akaunting-js/generalAction.js
vendored
6
public/akaunting-js/generalAction.js
vendored
@ -430,10 +430,12 @@ document.querySelectorAll('[data-index-icon]').forEach((defaultText) => {
|
|||||||
if (icon_parents_element.classList.contains('flex')) {
|
if (icon_parents_element.classList.contains('flex')) {
|
||||||
icon_parents_element.appendChild(defaultText);
|
icon_parents_element.appendChild(defaultText);
|
||||||
} else {
|
} else {
|
||||||
|
if (icon_parents_element.classList.contains('overflow-x-hidden')) {
|
||||||
icon_parents_element.parentElement.appendChild(defaultText);
|
icon_parents_element.parentElement.appendChild(defaultText);
|
||||||
|
} else {
|
||||||
|
defaultText.parentElement.appendChild(defaultText);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// defaultText.parentElement.parentElement.parentElement.parentElement.appendChild(defaultText);
|
|
||||||
});
|
});
|
||||||
//disable/enable icons ejected from data-truncate-marquee
|
//disable/enable icons ejected from data-truncate-marquee
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user