Skip to content

Commit

Permalink
cash flow responsive
Browse files Browse the repository at this point in the history
  • Loading branch information
brkcvn committed Oct 11, 2022
1 parent e8693a3 commit e522de1
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 11 deletions.
29 changes: 29 additions & 0 deletions public/css/app.css
Expand Up @@ -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 */

Expand Down Expand Up @@ -49918,6 +49930,14 @@ body{
position: absolute;
}

.lg\:relative{
position: relative;
}

.lg\:right-0{
right: 0px;
}

.lg\:right-24{
right: 6rem;
}
Expand Down Expand Up @@ -49948,6 +49968,10 @@ body{
margin-top: 1rem;
}

.lg\:mt-11{
margin-top: 2.75rem;
}

.lg\:mt-60{
margin-top: 15rem;
}
Expand Down Expand Up @@ -50158,6 +50182,11 @@ body{
justify-content: center;
}

.lg\:justify-around{
-ms-flex-pack: distribute;
justify-content: space-around;
}

.lg\:gap-16{
gap: 4rem;
}
Expand Down
11 changes: 11 additions & 0 deletions resources/assets/sass/app.css
Expand Up @@ -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 */

Expand Down
22 changes: 11 additions & 11 deletions resources/views/widgets/cash_flow.blade.php
@@ -1,48 +1,48 @@
<div id="widget-{{ $class->model->id }}" class="w-full my-8 px-12">
@include($class->views['header'], ['header_class' => ''])

<div class="flex flex-col lg:flex-row mt-3">
<div class="w-full lg:w-11/12">
<div class="flex flex-col-reverse lg:flex-row mt-3">
<div class="w-full lg:w-11/12 apex-chart-cash-flow">
{!! $chart->container() !!}
</div>

<div class="w-full lg:w-1/12 mt-11 space-y-2">
<div class="flex flex-col items-center justify-between text-center">
<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="relative flex flex-col items-center sm:justify-between text-center">
<div class="flex justify-end lg:block text-lg">
<x-tooltip id="tooltip-cashflow-incoming" placement="top" message="{{ $totals['incoming_exact'] }}">
{{ $totals['incoming_for_humans'] }}
</x-tooltip>
</div>

<span class="text-green text-xs">
<span class="text-green text-xs hidden lg:block">
{{ trans('general.incoming') }}
</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 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">
<x-tooltip id="tooltip-cashflow-outgoing" placement="top" message="{{ $totals['outgoing_exact'] }}">
{{ $totals['outgoing_for_humans'] }}
</x-tooltip>
</div>

<span class="text-rose text-xs">
<span class="text-rose text-xs hidden lg:block">
{{ trans('general.outgoing') }}
</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 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">
<x-tooltip id="tooltip-cashflow-profit" placement="top" message="{{ $totals['profit_exact'] }}">
{{ $totals['profit_for_humans'] }}
</x-tooltip>
</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>
Expand Down
4 changes: 4 additions & 0 deletions safelist.txt
Expand Up @@ -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

0 comments on commit e522de1

Please sign in to comment.