cash flow responsive

This commit is contained in:
Burak Civan 2022-10-11 12:01:46 +03:00
parent e8693a3c92
commit e522de171b
4 changed files with 55 additions and 11 deletions

29
public/css/app.css vendored
View File

@ -47162,6 +47162,18 @@ html[dir='rtl'] .el-scrollbar__wrap {
.el-range-editor.el-input__inner { .el-range-editor.el-input__inner {
width: 100%; 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 */ /* element-ui */
@ -49918,6 +49930,14 @@ body{
position: absolute; position: absolute;
} }
.lg\:relative{
position: relative;
}
.lg\:right-0{
right: 0px;
}
.lg\:right-24{ .lg\:right-24{
right: 6rem; right: 6rem;
} }
@ -49948,6 +49968,10 @@ body{
margin-top: 1rem; margin-top: 1rem;
} }
.lg\:mt-11{
margin-top: 2.75rem;
}
.lg\:mt-60{ .lg\:mt-60{
margin-top: 15rem; margin-top: 15rem;
} }
@ -50158,6 +50182,11 @@ body{
justify-content: center; justify-content: center;
} }
.lg\:justify-around{
-ms-flex-pack: distribute;
justify-content: space-around;
}
.lg\:gap-16{ .lg\:gap-16{
gap: 4rem; gap: 4rem;
} }

View File

@ -459,6 +459,17 @@ html[dir='rtl'] .el-scrollbar__wrap {
.el-range-editor.el-input__inner { .el-range-editor.el-input__inner {
width: 100%; 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 */ /* element-ui */

View File

@ -1,48 +1,48 @@
<div id="widget-{{ $class->model->id }}" class="w-full my-8 px-12"> <div id="widget-{{ $class->model->id }}" class="w-full my-8 px-12">
@include($class->views['header'], ['header_class' => '']) @include($class->views['header'], ['header_class' => ''])
<div class="flex flex-col lg:flex-row mt-3"> <div class="flex flex-col-reverse lg:flex-row mt-3">
<div class="w-full lg:w-11/12"> <div class="w-full lg:w-11/12 apex-chart-cash-flow">
{!! $chart->container() !!} {!! $chart->container() !!}
</div> </div>
<div class="w-full lg:w-1/12 mt-11 space-y-2"> <div class="w-96 lg:w-1/12 flex flex-row lg:flex-col items-center justify-around sm:justify-start lg:mt-11 space-y-0 sm:space-y-2">
<div class="flex flex-col items-center justify-between text-center"> <div class="relative flex flex-col items-center sm:justify-between text-center">
<div class="flex justify-end lg:block text-lg"> <div class="flex justify-end lg:block text-lg">
<x-tooltip id="tooltip-cashflow-incoming" placement="top" message="{{ $totals['incoming_exact'] }}"> <x-tooltip id="tooltip-cashflow-incoming" placement="top" message="{{ $totals['incoming_exact'] }}">
{{ $totals['incoming_for_humans'] }} {{ $totals['incoming_for_humans'] }}
</x-tooltip> </x-tooltip>
</div> </div>
<span class="text-green text-xs"> <span class="text-green text-xs hidden lg:block">
{{ trans('general.incoming') }} {{ trans('general.incoming') }}
</span> </span>
<span class="material-icons mt-2">remove</span> <span class="absolute lg:relative material-icons mt-2 -right-12 lg:right-0">remove</span>
</div> </div>
<div class="flex flex-col items-center justify-between"> <div class="relative flex flex-col items-center sm:justify-between">
<div class="flex justify-end lg:block text-lg"> <div class="flex justify-end lg:block text-lg">
<x-tooltip id="tooltip-cashflow-outgoing" placement="top" message="{{ $totals['outgoing_exact'] }}"> <x-tooltip id="tooltip-cashflow-outgoing" placement="top" message="{{ $totals['outgoing_exact'] }}">
{{ $totals['outgoing_for_humans'] }} {{ $totals['outgoing_for_humans'] }}
</x-tooltip> </x-tooltip>
</div> </div>
<span class="text-rose text-xs"> <span class="text-rose text-xs hidden lg:block">
{{ trans('general.outgoing') }} {{ trans('general.outgoing') }}
</span> </span>
<span class="material-icons mt-2">drag_handle</span> <span class="absolute lg:relative material-icons mt-2 -right-12 lg:right-0">drag_handle</span>
</div> </div>
<div class="flex flex-col items-center justify-between"> <div class="relative flex flex-col items-center sm:justify-between">
<div class="flex justify-end lg:block text-lg"> <div class="flex justify-end lg:block text-lg">
<x-tooltip id="tooltip-cashflow-profit" placement="top" message="{{ $totals['profit_exact'] }}"> <x-tooltip id="tooltip-cashflow-profit" placement="top" message="{{ $totals['profit_exact'] }}">
{{ $totals['profit_for_humans'] }} {{ $totals['profit_for_humans'] }}
</x-tooltip> </x-tooltip>
</div> </div>
<span class="text-purple text-xs">{{ trans_choice('general.profits', 1) }}</span> <span class="text-purple text-xs hidden lg:block">{{ trans_choice('general.profits', 1) }}</span>
</div> </div>
</div> </div>
</div> </div>

View File

@ -5,5 +5,9 @@ lg:my-12
lg:mt-4 lg:mt-4
lg:pl-6 lg:pl-6
lg:w-9 lg:w-9
lg:mt-11
lg:relative
lg:right-0
lg:justify-around
ltr:-right-1.5 ltr:-right-1.5
rtl:-left-1.5 rtl:-left-1.5