diff --git a/public/akaunting-js/generalAction.js b/public/akaunting-js/generalAction.js index c863f94af..0743d8107 100644 --- a/public/akaunting-js/generalAction.js +++ b/public/akaunting-js/generalAction.js @@ -29,6 +29,9 @@ document.querySelectorAll("[data-table-body]").forEach((table) => { let td_item = td[i]; td_item.addEventListener("click", (event) => { + if (document.body.clientWidth < 768 && event.target.closest('[overflow-x-hidden]')) { + return; + } // click disabled when preview dialog is open if (event.target.closest('[data-tooltip-target]')) { return; @@ -436,6 +439,7 @@ function marqueeAnimation(truncate) { //there is overflow class for the animation does not overflow the width truncate.parentElement.parentElement.classList.add('overflow-x-hidden'); + truncate.parentElement.parentElement.setAttribute('overflow-x-hidden', true); } } diff --git a/public/css/app.css b/public/css/app.css index 1d98bee48..e3419e4a3 100644 --- a/public/css/app.css +++ b/public/css/app.css @@ -53686,6 +53686,16 @@ table thead a:hover{ padding-right: 8px !important; } +.el-select-dropdown__item .new-badge { + width: 45px !important; + margin-left: 8px; + z-index: 99; +} + +.el-select-dropdown__item .new-badge:hover { + background-color: #6ea152; +} + .el-select-dropdown__item .material-icons { padding-right: 0 !important; padding-left: 0 !important; @@ -54088,6 +54098,10 @@ html[dir="rtl"] .lines-radius-border thead td:last-child { .full-width-mobile { width: 100% !important; } + + .full-height-mobile { + height: 100% !important; + } } /* full-width for mobile. Some component use inline styling for width */ @@ -55817,14 +55831,14 @@ body{ padding-right: 0.75rem; } -[dir="ltr"] .ltr\:pl-10{ - padding-left: 2.5rem; -} - [dir="ltr"] .ltr\:pr-10{ padding-right: 2.5rem; } +[dir="ltr"] .ltr\:pl-10{ + padding-left: 2.5rem; +} + [dir="ltr"] .ltr\:text-left{ text-align: left; } @@ -56826,14 +56840,14 @@ body{ padding-left: 0.75rem; } -[dir="rtl"] .rtl\:pr-10{ - padding-right: 2.5rem; -} - [dir="rtl"] .rtl\:pl-10{ padding-left: 2.5rem; } +[dir="rtl"] .rtl\:pr-10{ + padding-right: 2.5rem; +} + [dir="rtl"] .rtl\:text-left{ text-align: left; } @@ -56893,6 +56907,10 @@ body{ float: right; } + .sm\:mt-6{ + margin-top: 1.5rem; + } + .sm\:mt-12{ margin-top: 3rem; } @@ -57086,10 +57104,19 @@ body{ border-left-width: calc(2px * calc(1 - var(--tw-divide-x-reverse))); } + .sm\:p-10{ + padding: 2.5rem; + } + .sm\:p-7{ padding: 1.75rem; } + .sm\:py-10{ + padding-top: 2.5rem; + padding-bottom: 2.5rem; + } + .sm\:px-0{ padding-left: 0px; padding-right: 0px; @@ -57100,6 +57127,31 @@ body{ padding-right: 0.5rem; } + .sm\:text-xs{ + font-size: 0.75rem; + line-height: 1rem; + } + + .sm\:text-base{ + font-size: 1rem; + line-height: 1.5rem; + } + + .sm\:text-lg{ + font-size: 1.125rem; + line-height: 1.75rem; + } + + .sm\:text-xl{ + font-size: 1.25rem; + line-height: 1.75rem; + } + + .sm\:text-2xl{ + font-size: 1.375rem; + line-height: 1.5rem; + } + .sm\:text-6xl{ font-size: 2.5rem; line-height: 2.75rem; @@ -57114,6 +57166,10 @@ body{ right: 1rem; } + [dir="ltr"] .sm\:ltr\:pl-10{ + padding-left: 2.5rem; + } + [dir="rtl"] .sm\:rtl\:left-4{ left: 1rem; } @@ -57121,6 +57177,10 @@ body{ [dir="rtl"] .sm\:rtl\:space-x-reverse > :not([hidden]) ~ :not([hidden]){ --tw-space-x-reverse: 1; } + + [dir="rtl"] .sm\:rtl\:pr-10{ + padding-right: 2.5rem; + } } @media (min-width: 768px){ diff --git a/resources/assets/js/components/AkauntingSelect.vue b/resources/assets/js/components/AkauntingSelect.vue index 595fd7943..b190d91b7 100644 --- a/resources/assets/js/components/AkauntingSelect.vue +++ b/resources/assets/js/components/AkauntingSelect.vue @@ -105,7 +105,7 @@ - {{ addNew.new_text }} + {{ addNew.new_text }} {{ option.value }} diff --git a/resources/assets/js/components/AkauntingSelectRemote.vue b/resources/assets/js/components/AkauntingSelectRemote.vue index 17d1a0d93..7d8c01f48 100644 --- a/resources/assets/js/components/AkauntingSelectRemote.vue +++ b/resources/assets/js/components/AkauntingSelectRemote.vue @@ -102,7 +102,7 @@ - {{ addNew.new_text }} + {{ addNew.new_text }} {{ option.value }} @@ -202,7 +202,7 @@ - {{ addNew.new_text }} + {{ addNew.new_text }} {{ option.value }} diff --git a/resources/assets/js/views/wizard/Company.vue b/resources/assets/js/views/wizard/Company.vue index 42831b9b5..24b444861 100644 --- a/resources/assets/js/views/wizard/Company.vue +++ b/resources/assets/js/views/wizard/Company.vue @@ -1,15 +1,15 @@ - + - data_usage + data_usage - + - + - + data_usage diff --git a/resources/assets/js/views/wizard/Finish.vue b/resources/assets/js/views/wizard/Finish.vue index 7085e4565..25cda807e 100644 --- a/resources/assets/js/views/wizard/Finish.vue +++ b/resources/assets/js/views/wizard/Finish.vue @@ -1,10 +1,10 @@ - + - + data_usage diff --git a/resources/assets/js/views/wizard/Steps.vue b/resources/assets/js/views/wizard/Steps.vue index b27e01376..ed5f17d8c 100644 --- a/resources/assets/js/views/wizard/Steps.vue +++ b/resources/assets/js/views/wizard/Steps.vue @@ -2,7 +2,7 @@ - + - + - + - + @if (! $account->enabled) @endif diff --git a/resources/views/components/form/group/recurring.blade.php b/resources/views/components/form/group/recurring.blade.php index f68a4e6a6..6c2b937b1 100644 --- a/resources/views/components/form/group/recurring.blade.php +++ b/resources/views/components/form/group/recurring.blade.php @@ -1,7 +1,7 @@ - + \ No newline at end of file diff --git a/resources/views/components/layouts/admin/header.blade.php b/resources/views/components/layouts/admin/header.blade.php index 19aeb37aa..701623361 100644 --- a/resources/views/components/layouts/admin/header.blade.php +++ b/resources/views/components/layouts/admin/header.blade.php @@ -13,7 +13,7 @@ @if (! empty($status)) - + {!! $status !!} @endif diff --git a/resources/views/components/layouts/portal/header.blade.php b/resources/views/components/layouts/portal/header.blade.php index 13be37276..7a7f02625 100644 --- a/resources/views/components/layouts/portal/header.blade.php +++ b/resources/views/components/layouts/portal/header.blade.php @@ -1,7 +1,7 @@ @stack('header_start') - + @@ -13,7 +13,7 @@ @if (! empty($status)) - + {!! $status !!} @endif diff --git a/resources/views/components/layouts/preview/header.blade.php b/resources/views/components/layouts/preview/header.blade.php index 13be37276..7a7f02625 100644 --- a/resources/views/components/layouts/preview/header.blade.php +++ b/resources/views/components/layouts/preview/header.blade.php @@ -1,7 +1,7 @@ @stack('header_start') - + @@ -13,7 +13,7 @@ @if (! empty($status)) - + {!! $status !!} @endif diff --git a/resources/views/components/layouts/signed/header.blade.php b/resources/views/components/layouts/signed/header.blade.php index 478d6a956..fa328751b 100644 --- a/resources/views/components/layouts/signed/header.blade.php +++ b/resources/views/components/layouts/signed/header.blade.php @@ -1,7 +1,7 @@ @stack('header_start') - + @@ -13,7 +13,7 @@ @if (! empty($status)) - + {!! $status !!} @endif diff --git a/resources/views/portal/invoices/preview.blade.php b/resources/views/portal/invoices/preview.blade.php index c65867582..46fbf9f0c 100644 --- a/resources/views/portal/invoices/preview.blade.php +++ b/resources/views/portal/invoices/preview.blade.php @@ -23,72 +23,69 @@ @if (! empty($payment_methods) && ! in_array($invoice->status, ['paid', 'cancelled'])) - + @php $is_active = true; @endphp - - - - @foreach ($payment_methods as $key => $name) - @stack('invoice_{{ $key }}_tab_start') - - - - {{ $name }} - - - - @stack('invoice_{{ $key }}_tab_end') + + + @foreach ($payment_methods as $key => $name) + @stack('invoice_{{ $key }}_tab_start') + + {{ $name }} + + @stack('invoice_{{ $key }}_tab_end') - @php $is_active = false; @endphp - @endforeach + @php $is_active = false; @endphp + @endforeach + + + @if (count($payment_methods) > 3) + + chevron_right - @if (count($payment_methods) > 3) - - chevron_right - - - - chevron_left - - @endif - - + + chevron_left + + @endif + @php $is_active = true; @endphp - - @foreach ($payment_methods as $key => $name) - @stack('invoice_{{ $key }}_content_start') - - - - - - @stack('invoice_{{ $key }}_content_end') + @foreach ($payment_methods as $key => $name) + @stack('invoice_{{ $key }}_content_start') + + + + @stack('invoice_{{ $key }}_content_end') - @php $is_active = false; @endphp - @endforeach + @php $is_active = false; @endphp + @endforeach - - + + - - - - + + + @endif @if ($invoice->transactions->count()) diff --git a/resources/views/portal/invoices/show.blade.php b/resources/views/portal/invoices/show.blade.php index bb1ae6fe6..b62a1b6ec 100644 --- a/resources/views/portal/invoices/show.blade.php +++ b/resources/views/portal/invoices/show.blade.php @@ -21,72 +21,69 @@ @if (! empty($payment_methods) && ! in_array($invoice->status, ['paid', 'cancelled'])) - + @php $is_active = true; @endphp - - - - @foreach ($payment_methods as $key => $name) - @stack('invoice_{{ $key }}_tab_start') - - - - {{ $name }} - - - - @stack('invoice_{{ $key }}_tab_end') + + + @foreach ($payment_methods as $key => $name) + @stack('invoice_{{ $key }}_tab_start') + + {{ $name }} + + @stack('invoice_{{ $key }}_tab_end') - @php $is_active = false; @endphp - @endforeach + @php $is_active = false; @endphp + @endforeach + + + @if (count($payment_methods) > 3) + + chevron_right - @if (count($payment_methods) > 3) - - chevron_right - - - - chevron_left - - @endif - - + + chevron_left + + @endif + @php $is_active = true; @endphp - - @foreach ($payment_methods as $key => $name) - @stack('invoice_{{ $key }}_content_start') - - - - - - @stack('invoice_{{ $key }}_content_end') + @foreach ($payment_methods as $key => $name) + @stack('invoice_{{ $key }}_content_start') + + + + @stack('invoice_{{ $key }}_content_end') - @php $is_active = false; @endphp - @endforeach + @php $is_active = false; @endphp + @endforeach - - + + - - - - + + + @endif @if ($invoice->transactions->count()) diff --git a/resources/views/portal/invoices/signed.blade.php b/resources/views/portal/invoices/signed.blade.php index 86bed3ae3..a3835c6fe 100644 --- a/resources/views/portal/invoices/signed.blade.php +++ b/resources/views/portal/invoices/signed.blade.php @@ -30,72 +30,69 @@ @if (! empty($payment_methods) && ! in_array($invoice->status, ['paid', 'cancelled'])) - + @php $is_active = true; @endphp - - - - @foreach ($payment_methods as $key => $name) - @stack('invoice_{{ $key }}_tab_start') - - - - {{ $name }} - - - - @stack('invoice_{{ $key }}_tab_end') + + + @foreach ($payment_methods as $key => $name) + @stack('invoice_{{ $key }}_tab_start') + + {{ $name }} + + @stack('invoice_{{ $key }}_tab_end') - @php $is_active = false; @endphp - @endforeach + @php $is_active = false; @endphp + @endforeach + + + @if (count($payment_methods) > 3) + + chevron_right - @if (count($payment_methods) > 3) - - chevron_right - - - - chevron_left - - @endif - - + + chevron_left + + @endif + @php $is_active = true; @endphp - - @foreach ($payment_methods as $key => $name) - @stack('invoice_{{ $key }}_content_start') - - - - - - @stack('invoice_{{ $key }}_content_end') - - @php $is_active = false; @endphp - @endforeach + @foreach ($payment_methods as $key => $name) + @stack('invoice_{{ $key }}_content_start') + + + + @stack('invoice_{{ $key }}_content_end') - - + @php $is_active = false; @endphp + @endforeach - - - - + + + + + + @endif @if ($invoice->transactions->count()) diff --git a/safelist.txt b/safelist.txt index 596669fd3..51df5748d 100644 --- a/safelist.txt +++ b/safelist.txt @@ -18,6 +18,16 @@ sm:min-h-500 sm:max-w-4xl sm:space-x-4 sm:text-purple +sm:text-xs +sm:text-base +sm:text-lg +sm:text-xl +sm:text-2xl +sm:p-10 +sm:py-10 +sm:ltr:pl-10 +sm:rtl:pr-10 +sm:mt-6 md:grid-cols-2 lg:mt-2 lg:mt-4