Fix the dashboard edit-list title when a sort handle is present

This commit is contained in:
Kevin MacMartin 2018-01-11 23:57:49 -05:00
parent b5016bab06
commit 22da70893a
2 changed files with 18 additions and 20 deletions

View file

@ -270,13 +270,6 @@ body {
margin: 3px; margin: 3px;
} }
.sort-icon {
margin-right: 10px;
display: inline-block;
cursor: grab;
cursor: -webkit-grabbing;
}
.title-column { .title-column {
padding-top: 6px; padding-top: 6px;
padding-bottom: 6px; padding-bottom: 6px;
@ -306,6 +299,13 @@ body {
margin-right: 10px; margin-right: 10px;
} }
} }
.sort-icon {
margin-right: 10px;
display: inline-block;
cursor: grab;
cursor: -webkit-grabbing;
}
} }
.button-column { .button-column {

View file

@ -28,21 +28,19 @@
<i class="fa fa-bars sort-icon" title="Click and drag to reorder"></i> <i class="fa fa-bars sort-icon" title="Click and drag to reorder"></i>
@endif @endif
<div class="title"> @if(is_array($column))
@if(is_array($column)) @foreach($column as $col)
@foreach($column as $col) @if($row[$col] != '')
@if($row[$col] != '') <div class="column">{{ $row[$col] }}</div>
<div class="column">{{ $row[$col] }}</div>
@if(!$loop->last) @if(!$loop->last)
<div class="column spacer">|</div> <div class="column spacer">|</div>
@endif
@endif @endif
@endforeach @endif
@else @endforeach
{{ $row[$column] }} @else
@endif {{ $row[$column] }}
</div> @endif
</div> </div>
<div class="button-column"> <div class="button-column">