diff --git a/app/View/Components/DeleteLink.php b/app/View/Components/DeleteLink.php
index 52c9cdee7..f098768eb 100644
--- a/app/View/Components/DeleteLink.php
+++ b/app/View/Components/DeleteLink.php
@@ -282,7 +282,7 @@ class DeleteLink extends Component
protected function getClass($class)
{
- $default_class = 'w-full flex items-center text-purple px-2 h-9 leading-9 whitespace-nowrap';
+ $default_class = 'w-full flex items-center text-red sm:text-purple px-2 h-9 leading-9 whitespace-nowrap';
$explode = explode(',', $this->override);
diff --git a/public/akaunting-js/generalAction.js b/public/akaunting-js/generalAction.js
index 9129c8ba0..c863f94af 100644
--- a/public/akaunting-js/generalAction.js
+++ b/public/akaunting-js/generalAction.js
@@ -11,7 +11,7 @@ document.querySelectorAll("[data-table-list]").forEach((row) => {
//redirect edit or show page for table row click
document.querySelectorAll("[data-table-body]").forEach((table) => {
- if (document.body.clientWidth >= 991) {
+ if (document.body.clientWidth < 768 || document.body.clientWidth > 1200) {
let rows = table.querySelectorAll("tr");
rows.forEach((row) => {
@@ -27,7 +27,13 @@ document.querySelectorAll("[data-table-body]").forEach((table) => {
if (row_href) {
for (let i = first_selector; i < td.length - 1; i++) {
let td_item = td[i];
- td_item.addEventListener("click", () => {
+
+ td_item.addEventListener("click", (event) => {
+ // click disabled when preview dialog is open
+ if (event.target.closest('[data-tooltip-target]')) {
+ return;
+ }
+ // click disabled when preview dialog is open
window.location.href = row_href;
});
@@ -42,6 +48,20 @@ document.querySelectorAll("[data-table-body]").forEach((table) => {
}
});
}
+
+ if (document.body.clientWidth <= 768) {
+ table.querySelectorAll('[data-table-list]').forEach((actions) => {
+ actions.querySelector('[data-mobile-actions]').addEventListener('click', function() {
+ this.closest('td').querySelector('[data-mobile-actions-modal]').classList.add('show');
+ this.closest('td').querySelector('[data-mobile-actions-modal]').classList.remove('opacity-0', 'invisible');
+
+ this.closest('td').querySelector('[data-mobile-actions-modal]').addEventListener('click', function() {
+ this.classList.add('opacity-0', 'invisible');
+ this.classList.remove('show');
+ });
+ });
+ });
+ }
});
//redirect edit or show page for table row click
@@ -441,3 +461,46 @@ document.querySelectorAll('[data-index-icon]').forEach((defaultText) => {
//disable/enable icons ejected from data-truncate-marquee
//margue animation for truncated text
+
+// set with for page header
+document.querySelectorAll('[data-page-title-first]').forEach((first) => {
+ document.querySelectorAll('[data-page-title-second]').forEach((second) => {
+ let title_truncate = first.querySelector('[data-title-truncate]');
+
+ if (title_truncate !== null) {
+ if (first.clientWidth < title_truncate.clientWidth && second.clientHeight > 0) {
+ // added specific width styling for truncate text
+ title_truncate.style.width = first.clientWidth + 'px';
+ let subtract = title_truncate.clientWidth - 40;
+ title_truncate.style.width = subtract + 'px';
+ title_truncate.classList.add('truncate');
+ // added specific width styling for truncate text
+
+ // added specific width styling into the parent title element for truncate text
+ first.classList.add('w-full', 'sm:w-6/12');
+ // added specific width styling into the parent title element for truncate text
+
+ title_truncate.parentNode.classList.add('overflow-x-hidden', 'hide-scroll-bar');
+
+ // added truncate animation for truncated text
+ title_truncate.addEventListener('mouseover', function () {
+ this.classList.add('animate-marquee');
+ this.classList.remove('truncate');
+ this.style.animationPlayState = 'running';
+ });
+
+ title_truncate.addEventListener('mouseout', function () {
+ this.style.animationPlayState = 'paused';
+ this.classList.remove('animate-marquee');
+ this.classList.add('truncate');
+ });
+ // added truncate animation for truncated text
+ }
+ }
+
+ // remove width class name for extend the right side
+ first.classList.remove('w-full', 'sm:w-6/12');
+ // remove width class name for extend the right side
+ });
+});
+// set with for page header
diff --git a/public/css/app.css b/public/css/app.css
index e953b3f3b..b1338d29e 100644
--- a/public/css/app.css
+++ b/public/css/app.css
@@ -53411,6 +53411,9 @@ button, input, optgroup, select, textarea{
border-bottom-left-radius: 0.5rem;
border-right-width: 0px;
}
+.suggestion-buttons > a:first-child, .suggestion-buttons > button:first-child{
+ margin-top: 0.5rem;
+}
[data-dropdown-actions] {
-webkit-transform: unset !important;
transform: unset !important;
@@ -54088,6 +54091,17 @@ html[dir="rtl"] .lines-radius-border thead td:last-child {
}
/* plans page accordion */
+ /* hidden scroll-bar */
+ .hide-scroll-bar::-webkit-scrollbar {
+ display: none;
+ }
+
+ .hide-scroll-bar {
+ -ms-overflow-style: none; /* IE and Edge */
+ scrollbar-width: none; /* Firefox */
+ }
+ /* hidden scroll-bar */
+
@media only screen and (max-width: 480px) {
.small-table-width {
width: 550px;
@@ -54501,16 +54515,16 @@ body{
background-color: rgb(255 255 255 / var(--tw-bg-opacity));
}
-.hover\:bg-gray-100:hover{
- --tw-bg-opacity: 1;
- background-color: rgb(243 244 246 / var(--tw-bg-opacity));
-}
-
.hover\:bg-lilac-100:hover{
--tw-bg-opacity: 1;
background-color: rgb(245 247 250 / var(--tw-bg-opacity));
}
+.hover\:bg-gray-100:hover{
+ --tw-bg-opacity: 1;
+ background-color: rgb(243 244 246 / var(--tw-bg-opacity));
+}
+
.hover\:bg-gray-200:hover{
--tw-bg-opacity: 1;
background-color: rgb(229 231 235 / var(--tw-bg-opacity));
@@ -57027,6 +57041,12 @@ body{
gap: 0px;
}
+ .sm\:space-x-4 > :not([hidden]) ~ :not([hidden]){
+ --tw-space-x-reverse: 0;
+ margin-right: calc(1rem * var(--tw-space-x-reverse));
+ margin-left: calc(1rem * calc(1 - var(--tw-space-x-reverse)));
+ }
+
.sm\:space-y-2 > :not([hidden]) ~ :not([hidden]){
--tw-space-y-reverse: 0;
margin-top: calc(0.5rem * calc(1 - var(--tw-space-y-reverse)));
@@ -57045,6 +57065,10 @@ body{
border-left-width: calc(2px * calc(1 - var(--tw-divide-x-reverse)));
}
+ .sm\:p-7{
+ padding: 1.75rem;
+ }
+
.sm\:px-0{
padding-left: 0px;
padding-right: 0px;
@@ -57060,6 +57084,11 @@ body{
line-height: 2.75rem;
}
+ .sm\:text-purple{
+ --tw-text-opacity: 1;
+ color: rgb(85 88 139 / var(--tw-text-opacity));
+ }
+
[dir="ltr"] .sm\:ltr\:right-4{
right: 1rem;
}
diff --git a/public/css/print.css b/public/css/print.css
index c19970f17..335dbec07 100644
--- a/public/css/print.css
+++ b/public/css/print.css
@@ -767,69 +767,63 @@ html[dir='rtl'] .print-heading {
.classic-invoice {
margin-top: 10px;
}
+/*--Print --*/
-.col-60
-{
+.col-60 {
display: inline-block;
- width: 100%;
+ width: 60%;
vertical-align: top;
}
-.col-50
-{
+.col-50 {
display: inline-block;
- width: 100%;
+ width: 50%;
vertical-align: top;
}
-.col-40
-{
+.col-40 {
display: inline-block;
- width: 100%;
+ width: 40%;
vertical-align: top;
}
-.col-58
-{
+
+.col-58{
display: inline-block;
width: 58%;
vertical-align: top;
}
-.col-42
-{
+
+.col-42 {
display: inline-block;
width: 42%;
vertical-align: top;
}
-.col-16
-{
+
+.col-16 {
display: inline-block;
max-width: 16%;
vertical-align: top;
}
-/*--Print --*/
-@media (min-width: 991px) {
- .col-60
- {
- display: inline-block;
- width: 60%;
- vertical-align: top;
- }
-
- .col-50
- {
+@media (max-width: 480px) {
+ .col-60 {
display: inline-block;
width: 50%;
vertical-align: top;
}
-
- .col-40
- {
+
+ .col-40 {
display: inline-block;
- width: 40%;
+ width: 50%;
vertical-align: top;
}
+ .mt-classic {
+ margin-top: -1px;
+ }
+}
+
+@media (min-width: 991px) {
.classic-invoice {
margin-top: unset;
}
diff --git a/resources/assets/sass/app.css b/resources/assets/sass/app.css
index 14cac23fe..5951c3f43 100644
--- a/resources/assets/sass/app.css
+++ b/resources/assets/sass/app.css
@@ -21,6 +21,11 @@
.index-actions {
@apply ltr:[&:nth-child(2)]:border-l ltr:[&:nth-child(3)]:border-l-0 rtl:[&:nth-child(2)]:border-r rtl:[&:nth-child(3)]:border-r-0 ltr:[&:first-child]:rounded-tl-lg ltr:[&:first-child]:rounded-bl-lg ltr:[&:first-child]:border-r-0 rtl:[&:first-child]:rounded-tr-lg rtl:[&:first-child]:rounded-br-lg rtl:[&:first-child]:border-l-0 ltr:[&:last-child]:rounded-tr-lg ltr:[&:last-child]:rounded-br-lg ltr:[&:last-child]:border-l-0 rtl:[&:last-child]:rounded-tl-lg rtl:[&:last-child]:rounded-bl-lg rtl:[&:last-child]:border-r-0;
}
+
+ .suggestion-buttons > a:first-child, .suggestion-buttons > button:first-child {
+ @apply mt-2;
+ }
+
[data-dropdown-actions] {
transform: unset !important;
}
@@ -600,6 +605,17 @@ html[dir="rtl"] .lines-radius-border thead td:last-child {
}
/* plans page accordion */
+ /* hidden scroll-bar */
+ .hide-scroll-bar::-webkit-scrollbar {
+ display: none;
+ }
+
+ .hide-scroll-bar {
+ -ms-overflow-style: none; /* IE and Edge */
+ scrollbar-width: none; /* Firefox */
+ }
+ /* hidden scroll-bar */
+
@media only screen and (max-width: 480px) {
.small-table-width {
width: 550px;
diff --git a/resources/views/components/delete-button.blade.php b/resources/views/components/delete-button.blade.php
index e7e3333b7..50d161f3b 100644
--- a/resources/views/components/delete-button.blade.php
+++ b/resources/views/components/delete-button.blade.php
@@ -1,10 +1,26 @@
-