From bb7288638072460fa6ba4c0a9572a28b1f55e298 Mon Sep 17 00:00:00 2001 From: Burak Civan Date: Fri, 21 Oct 2022 10:16:44 +0300 Subject: [PATCH] refactoring --- public/akaunting-js/generalAction.js | 8 ++++---- .../views/components/index/category.blade.php | 20 ++++++++++--------- resources/views/components/table/td.blade.php | 6 +++--- resources/views/components/table/th.blade.php | 6 +++--- 4 files changed, 21 insertions(+), 19 deletions(-) diff --git a/public/akaunting-js/generalAction.js b/public/akaunting-js/generalAction.js index ff57e3dfb..1abb05097 100644 --- a/public/akaunting-js/generalAction.js +++ b/public/akaunting-js/generalAction.js @@ -360,7 +360,7 @@ if (navigator.userAgent.search("Firefox") >= 0) { //margue animation for truncated text function marqueeAnimation(truncate) { - if (truncate.closest('[data-disable-truncate]') !== null) { + if (truncate.closest('[data-disable-marquee]') !== null) { truncate.parentElement.classList.add('truncate'); return; } @@ -388,14 +388,14 @@ function marqueeAnimation(truncate) { } } -document.querySelectorAll('[data-truncate]').forEach((truncate) => { +document.querySelectorAll('[data-truncate-marquee]').forEach((truncate) => { marqueeAnimation(truncate); }); -//disable/enable icons ejected from data-truncate, HTML of icons ejected from parent element (data-truncate) +//disable/enable icons ejected from data-truncate-marquee, HTML of icons ejected from parent element (data-truncate-marquee) document.querySelectorAll('[data-index-icon]').forEach((defaultText) => { defaultText.parentElement.parentElement.parentElement.parentElement.appendChild(defaultText); }); -//disable/enable icons ejected from data-truncate +//disable/enable icons ejected from data-truncate-marquee //margue animation for truncated text diff --git a/resources/views/components/index/category.blade.php b/resources/views/components/index/category.blade.php index 6268618e1..8033c2688 100644 --- a/resources/views/components/index/category.blade.php +++ b/resources/views/components/index/category.blade.php @@ -1,9 +1,11 @@ - - -{{ $name }} +
+ + + {{ $name }} +
diff --git a/resources/views/components/table/td.blade.php b/resources/views/components/table/td.blade.php index 56ad48670..2505f7243 100644 --- a/resources/views/components/table/td.blade.php +++ b/resources/views/components/table/td.blade.php @@ -13,7 +13,7 @@
- + {!! $first !!}
@@ -32,7 +32,7 @@
- + {!! $second !!}
@@ -42,7 +42,7 @@
- + {{ $slot }}
diff --git a/resources/views/components/table/th.blade.php b/resources/views/components/table/th.blade.php index 783f0b1d4..3e935c028 100644 --- a/resources/views/components/table/th.blade.php +++ b/resources/views/components/table/th.blade.php @@ -13,7 +13,7 @@
- + {!! $first !!}
@@ -32,7 +32,7 @@
- + {!! $second !!}
@@ -42,7 +42,7 @@
- + {{ $slot }}