From ffcc34b646de413ac4f421e3644b97ef792a9c32 Mon Sep 17 00:00:00 2001 From: Burak Civan Date: Mon, 17 Oct 2022 11:37:23 +0300 Subject: [PATCH] added th text --- public/akaunting-js/generalAction.js | 2 +- resources/views/banking/transactions/index.blade.php | 6 ++++-- resources/views/components/table/th.blade.php | 12 +++++++++--- 3 files changed, 14 insertions(+), 6 deletions(-) diff --git a/public/akaunting-js/generalAction.js b/public/akaunting-js/generalAction.js index 938a1819c..f6b40abb7 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 document.querySelectorAll('[data-truncate]').forEach((truncate) => { - let truncateText = truncate.textContent.split(" ").join(""); + let truncateText = truncate.innerText.split(" ").join(""); if (truncateText.length > 30) { truncate.classList.add('truncate'); diff --git a/resources/views/banking/transactions/index.blade.php b/resources/views/banking/transactions/index.blade.php index f469aa217..9106735ae 100644 --- a/resources/views/banking/transactions/index.blade.php +++ b/resources/views/banking/transactions/index.blade.php @@ -153,8 +153,10 @@ {{ $item->type_title }} - - + +
+ +
diff --git a/resources/views/components/table/th.blade.php b/resources/views/components/table/th.blade.php index e3d79db3f..a86ced55f 100644 --- a/resources/views/components/table/th.blade.php +++ b/resources/views/components/table/th.blade.php @@ -8,7 +8,9 @@ } @endphp
- {!! $first !!} + + {!! $first !!} +
@endif @@ -21,9 +23,13 @@ } @endphp
- {!! $second !!} + + {!! $second !!} +
@endif - {{ $slot }} + + {{ $slot }} +