added th text

This commit is contained in:
Burak Civan 2022-10-17 11:37:23 +03:00
parent 37c83d3c02
commit ffcc34b646
3 changed files with 14 additions and 6 deletions

View File

@ -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');

View File

@ -153,8 +153,10 @@
<x-slot name="first">
{{ $item->type_title }}
</x-slot>
<x-slot name="second" class="flex items-center">
<x-index.category :model="$item->category" />
<x-slot name="second">
<div class="flex items-center">
<x-index.category :model="$item->category" />
</div>
</x-slot>
</x-table.td>

View File

@ -8,7 +8,9 @@
}
@endphp
<div {{ $first_attributes }}>
{!! $first !!}
<x-marguee-text>
{!! $first !!}
</x-marguee-text>
</div>
@endif
@ -21,9 +23,13 @@
}
@endphp
<div {{ $second_attributes }}>
{!! $second !!}
<x-marguee-text>
{!! $second !!}
</x-marguee-text>
</div>
@endif
{{ $slot }}
<x-marguee-text>
{{ $slot }}
</x-marguee-text>
</th>