all list pages updated same height

This commit is contained in:
batuhanbas
2020-02-09 16:06:06 +03:00
parent 04af057194
commit c46ab7b14f
11 changed files with 44 additions and 26 deletions

View File

@ -104,11 +104,11 @@
</li>
</ul>
</div>
<div class="card shadow">
<div class="card">
<div class="tab-content" id="myTabContent">
<div class="tab-pane fade show active" id="tabs-icons-text-1" role="tabpanel" aria-labelledby="tabs-icons-text-1-tab">
<div class="table-responsive">
<table class="table table-flush" id="tbl-transactions">
<table class="table table-flush table-hover" id="tbl-transactions">
<thead class="thead-light">
<tr class="row table-head-line">
<th class="col-xs-6 col-sm-3">{{ trans('general.date') }}</th>
@ -119,7 +119,7 @@
</thead>
<tbody>
@foreach($transactions as $item)
<tr class="row align-items-center border-top-1">
<tr class="row align-items-center border-top-1 tr-py">
<td class="col-xs-6 col-sm-3">@date($item->paid_at)</td>
<td class="col-xs-6 col-sm-3 text-right">@money($item->amount, $item->currency_code, true)</td>
<td class="col-sm-3 d-none d-sm-block">{{ $item->category ? $item->category->name : trans('general.na') }}</td>
@ -138,7 +138,7 @@
<div class="tab-pane fade" id="tabs-icons-text-2" role="tabpanel" aria-labelledby="tabs-icons-text-2-tab">
<div class="table-responsive">
<table class="table table-flush" id="tbl-invoices">
<table class="table table-flush table-hover" id="tbl-invoices">
<thead class="thead-light">
<tr class="row table-head-line">
<th class="col-xs-4 col-sm-1">{{ trans_choice('general.numbers', 1) }}</th>
@ -150,12 +150,12 @@
</thead>
<tbody>
@foreach($invoices as $item)
<tr class="row align-items-center border-top-1">
<tr class="row align-items-center border-top-1 tr-py">
<td class="col-xs-4 col-sm-1"><a href="{{ route('invoices.show', $item->id) }}">{{ $item->invoice_number }}</a></td>
<td class="col-xs-4 col-sm-3 text-right">@money($item->amount, $item->currency_code, true)</td>
<td class="col-sm-3 d-none d-sm-block text-left">@date($item->invoiced_at)</td>
<td class="col-sm-3 d-none d-sm-block text-left">@date($item->due_at)</td>
<td class="col-xs-4 col-sm-2"><span class="badge badge-pill badge-{{ $item->status_label }}">{{ trans('invoices.statuses.' . $item->status) }}</span></td>
<td class="col-xs-4 col-sm-2"><span class="badge badge-pill badge-{{ $item->status_label }} my--2">{{ trans('invoices.statuses.' . $item->status) }}</span></td>
</tr>
@endforeach
</tbody>

View File

@ -548,7 +548,7 @@
</div>
<div id="collapseOne" class="collapse hide" aria-labelledby="headingOne">
<div class="table-responsive">
<table class="table table-hover">
<table class="table table-flush table-hover">
<thead class="thead-light">
<tr class="row table-head-line">
<th class="col-xs-4 col-sm-2">{{ trans('general.date') }}</th>
@ -558,7 +558,7 @@
</thead>
<tbody>
@foreach($invoice->histories as $history)
<tr class="row align-items-center">
<tr class="row align-items-center border-top-1 tr-py">
<td class="col-xs-4 col-sm-2">@date($history->created_at)</td>
<td class="col-xs-4 col-sm-3 text-left">{{ trans('invoices.statuses.' . $history->status) }}</td>
<td class="col-xs-4 col-sm-7 text-left long-texts">{{ $history->description }}</td>
@ -594,7 +594,7 @@
<tbody>
@if ($invoice->transactions->count())
@foreach($invoice->transactions as $transaction)
<tr class="row align-items-center border-top-1">
<tr class="row align-items-center border-top-1 tr-py">
<td class="col-xs-4 col-sm-3">@date($transaction->paid_at)</td>
<td class="col-xs-4 col-sm-3">@money($transaction->amount, $transaction->currency_code, true)</td>
<td class="col-sm-3 d-none d-sm-block">{{ $transaction->account->name }}</td>
@ -635,7 +635,7 @@
@else
<tr>
<td colspan="4">
<div class="text-muted" id="datatable-basic_info" role="status" aria-live="polite">
<div class="text-muted nr-py" id="datatable-basic_info" role="status" aria-live="polite">
{{ trans('general.no_records') }}
</div>
</td>