code refactoring

This commit is contained in:
Burak Civan 2022-11-17 11:05:18 +03:00
parent 270dfb42bd
commit 85a5b19878
6 changed files with 11 additions and 5 deletions

View File

@ -29,6 +29,9 @@ document.querySelectorAll("[data-table-body]").forEach((table) => {
let td_item = td[i]; let td_item = td[i];
td_item.addEventListener("click", (event) => { td_item.addEventListener("click", (event) => {
if (document.body.clientWidth < 768 && event.target.closest('[overflow-x-hidden]')) {
return;
}
// click disabled when preview dialog is open // click disabled when preview dialog is open
if (event.target.closest('[data-tooltip-target]')) { if (event.target.closest('[data-tooltip-target]')) {
return; return;
@ -436,6 +439,7 @@ function marqueeAnimation(truncate) {
//there is overflow class for the animation does not overflow the width //there is overflow class for the animation does not overflow the width
truncate.parentElement.parentElement.classList.add('overflow-x-hidden'); truncate.parentElement.parentElement.classList.add('overflow-x-hidden');
truncate.parentElement.parentElement.setAttribute('overflow-x-hidden', true);
} }
} }

View File

@ -4,7 +4,9 @@
</x-slot> </x-slot>
<x-slot name="info"> <x-slot name="info">
<div class="mt-3"> <div class="mt-4">
<x-index.default text="{{ trans('accounts.default_account') }}" />
@if (! $account->enabled) @if (! $account->enabled)
<x-index.disable text="{{ trans_choice('general.accounts', 1) }}" /> <x-index.disable text="{{ trans_choice('general.accounts', 1) }}" />
@endif @endif

View File

@ -13,7 +13,7 @@
</h1> </h1>
@if (! empty($status)) @if (! empty($status))
<div class="ltr:ml-4 rtl:mr-4"> <div class="ltr:ml-4 rtl:mr-4 mt-2">
{!! $status !!} {!! $status !!}
</div> </div>
@endif @endif

View File

@ -13,7 +13,7 @@
</h1> </h1>
@if (! empty($status)) @if (! empty($status))
<div class="ltr:ml-4 rtl:mr-4"> <div class="ltr:ml-4 rtl:mr-4 mt-2">
{!! $status !!} {!! $status !!}
</div> </div>
@endif @endif

View File

@ -13,7 +13,7 @@
</h1> </h1>
@if (! empty($status)) @if (! empty($status))
<div class="ltr:ml-4 rtl:mr-4"> <div class="ltr:ml-4 rtl:mr-4 mt-2">
{!! $status !!} {!! $status !!}
</div> </div>
@endif @endif

View File

@ -13,7 +13,7 @@
</h1> </h1>
@if (! empty($status)) @if (! empty($status))
<div class="ltr:ml-4 rtl:mr-4"> <div class="ltr:ml-4 rtl:mr-4 mt-2">
{!! $status !!} {!! $status !!}
</div> </div>
@endif @endif