From 27e52525f7d04cebca371d99bd5fc92fabc6f475 Mon Sep 17 00:00:00 2001 From: Burak Civan Date: Tue, 11 Oct 2022 11:51:27 +0300 Subject: [PATCH 1/2] add item responsive control --- public/css/app.css | 22 ++++++++++++++----- resources/assets/sass/app.css | 14 +++++++++++- .../components/documents/form/items.blade.php | 6 ++--- .../documents/form/line-item.blade.php | 8 ++++--- 4 files changed, 38 insertions(+), 12 deletions(-) diff --git a/public/css/app.css b/public/css/app.css index 9d5d2828f14..c27fbff754e 100644 --- a/public/css/app.css +++ b/public/css/app.css @@ -47241,13 +47241,25 @@ html[dir="rtl"] .lines-radius-border thead td:last-child { @media only screen and (max-width: 480px) { .small-table-width { - width: 450px; + width: 550px; } .small-col { width: auto !important; } + .description-col { + width: 180px !important + } + + .amount-col { + width: 70px !important; + } + + .name-col { + width: 6rem !important + } + .information-content { -webkit-transform: unset !important; transform: unset !important; @@ -50074,6 +50086,10 @@ body{ width: 66.666667%; } + .lg\:w-auto{ + width: auto; + } + .lg\:w-1\/4{ width: 25%; } @@ -50094,10 +50110,6 @@ body{ width: 24rem; } - .lg\:w-auto{ - width: auto; - } - .lg\:w-2\/4{ width: 50%; } diff --git a/resources/assets/sass/app.css b/resources/assets/sass/app.css index 97c9b14027b..05539f088a0 100644 --- a/resources/assets/sass/app.css +++ b/resources/assets/sass/app.css @@ -529,13 +529,25 @@ html[dir="rtl"] .lines-radius-border thead td:last-child { @media only screen and (max-width: 480px) { .small-table-width { - width: 450px; + width: 550px; } .small-col { width: auto !important; } + .description-col { + width: 180px !important + } + + .amount-col { + width: 70px !important; + } + + .name-col { + width: 6rem !important + } + .information-content { transform: unset !important; margin-top: 70px !important; diff --git a/resources/views/components/documents/form/items.blade.php b/resources/views/components/documents/form/items.blade.php index f6d2d01dd66..dad64e7e2de 100644 --- a/resources/views/components/documents/form/items.blade.php +++ b/resources/views/components/documents/form/items.blade.php @@ -4,11 +4,11 @@ - - + + - + diff --git a/resources/views/components/documents/form/line-item.blade.php b/resources/views/components/documents/form/line-item.blade.php index 99cea16dbac..a4f169718e6 100644 --- a/resources/views/components/documents/form/line-item.blade.php +++ b/resources/views/components/documents/form/line-item.blade.php @@ -8,10 +8,10 @@ - + - + @@ -30,7 +30,9 @@
@if (! $hideItemName) - + +
+
@stack('name_input_start') From e522de171b5e5fbe5c702476c21ede0d8c1088f8 Mon Sep 17 00:00:00 2001 From: Burak Civan Date: Tue, 11 Oct 2022 12:01:46 +0300 Subject: [PATCH 2/2] cash flow responsive --- public/css/app.css | 29 +++++++++++++++++++++ resources/assets/sass/app.css | 11 ++++++++ resources/views/widgets/cash_flow.blade.php | 22 ++++++++-------- safelist.txt | 4 +++ 4 files changed, 55 insertions(+), 11 deletions(-) diff --git a/public/css/app.css b/public/css/app.css index 9d5d2828f14..e61bbca060b 100644 --- a/public/css/app.css +++ b/public/css/app.css @@ -47162,6 +47162,18 @@ html[dir='rtl'] .el-scrollbar__wrap { .el-range-editor.el-input__inner { width: 100%; } + /* apex-chart cash-flow */ + .apex-chart-cash-flow .apexcharts-legend { + width: 24rem !important; + -ms-flex-pack: distribute !important; + justify-content: space-around !important; + padding: 0; + } + + .apex-chart-cash-flow .apexcharts-toolbar { + top: 45px !important; + } + /* apex-chart cash-flow */ } /* element-ui */ @@ -49918,6 +49930,14 @@ body{ position: absolute; } + .lg\:relative{ + position: relative; + } + + .lg\:right-0{ + right: 0px; + } + .lg\:right-24{ right: 6rem; } @@ -49948,6 +49968,10 @@ body{ margin-top: 1rem; } + .lg\:mt-11{ + margin-top: 2.75rem; + } + .lg\:mt-60{ margin-top: 15rem; } @@ -50158,6 +50182,11 @@ body{ justify-content: center; } + .lg\:justify-around{ + -ms-flex-pack: distribute; + justify-content: space-around; + } + .lg\:gap-16{ gap: 4rem; } diff --git a/resources/assets/sass/app.css b/resources/assets/sass/app.css index 97c9b14027b..3bf9cfd8916 100644 --- a/resources/assets/sass/app.css +++ b/resources/assets/sass/app.css @@ -459,6 +459,17 @@ html[dir='rtl'] .el-scrollbar__wrap { .el-range-editor.el-input__inner { width: 100%; } + /* apex-chart cash-flow */ + .apex-chart-cash-flow .apexcharts-legend { + width: 24rem !important; + justify-content: space-around !important; + padding: 0; + } + + .apex-chart-cash-flow .apexcharts-toolbar { + top: 45px !important; + } + /* apex-chart cash-flow */ } /* element-ui */ diff --git a/resources/views/widgets/cash_flow.blade.php b/resources/views/widgets/cash_flow.blade.php index aea334ad512..80c4e0791f4 100644 --- a/resources/views/widgets/cash_flow.blade.php +++ b/resources/views/widgets/cash_flow.blade.php @@ -1,48 +1,48 @@
@include($class->views['header'], ['header_class' => '']) -
-
+
+
{!! $chart->container() !!}
-
-
+
+
{{ $totals['incoming_for_humans'] }}
- + - remove + remove
-
+
{{ $totals['outgoing_for_humans'] }}
- + - drag_handle + drag_handle
-
+
{{ $totals['profit_for_humans'] }}
- {{ trans_choice('general.profits', 1) }} +
diff --git a/safelist.txt b/safelist.txt index d667e08b7f6..ff45c767887 100644 --- a/safelist.txt +++ b/safelist.txt @@ -5,5 +5,9 @@ lg:my-12 lg:mt-4 lg:pl-6 lg:w-9 +lg:mt-11 +lg:relative +lg:right-0 +lg:justify-around ltr:-right-1.5 rtl:-left-1.5 \ No newline at end of file