diff --git a/presets.js b/presets.js index 2a1054ec4..fbb3bc00d 100644 --- a/presets.js +++ b/presets.js @@ -244,7 +244,7 @@ module.exports = { spin: 'spin 1000ms infinite', submit: 'submit 0.7s ease alternate infinite', submit_second: 'submit_second 0.7s ease alternate infinite', - marquee: 'marquee 15s linear infinite' + marquee: 'marquee 5s linear infinite' }, transitionProperty: { diff --git a/public/akaunting-js/generalAction.js b/public/akaunting-js/generalAction.js index 13aaf4dbc..500f91f5e 100644 --- a/public/akaunting-js/generalAction.js +++ b/public/akaunting-js/generalAction.js @@ -358,6 +358,7 @@ if (navigator.userAgent.search("Firefox") >= 0) { } //Firefox show modal for icon set +//margue animation for truncated text document.querySelectorAll('[data-truncate]').forEach((truncate) => { let truncateText = truncate.textContent.split(" ").join(""); @@ -376,6 +377,14 @@ document.querySelectorAll('[data-truncate]').forEach((truncate) => { if (truncateText.length > 20) { truncate.style.animationPlayState = 'paused'; truncate.classList.add('truncate'); + truncate.classList.remove('animate-marquee'); } }); + + if (document.body.clientWidth <= 991) { + if (truncate.parentElement.getAttribute('data-truncate-parent')) { + truncate.parentElement.remove(); + } + } }); +//margue animation for truncated text diff --git a/public/css/app.css b/public/css/app.css index 5e3feba67..47369554b 100644 --- a/public/css/app.css +++ b/public/css/app.css @@ -10036,8 +10036,8 @@ input[type="date"]::-webkit-inner-spin-button, } } .animate-marquee{ - -webkit-animation: marquee 15s linear infinite; - animation: marquee 15s linear infinite; + -webkit-animation: marquee 5s linear infinite; + animation: marquee 5s linear infinite; } .cursor-auto{ cursor: auto; diff --git a/resources/views/common/items/index.blade.php b/resources/views/common/items/index.blade.php index 5ef72b42f..22b2a43c8 100644 --- a/resources/views/common/items/index.blade.php +++ b/resources/views/common/items/index.blade.php @@ -85,8 +85,10 @@ -
- {{ $item->name }} +
+
+ {{ $item->name }} +
@if (! $item->enabled)