diff --git a/app/Http/Controllers/DashboardController.php b/app/Http/Controllers/DashboardController.php index e88a8d4..227c4e1 100644 --- a/app/Http/Controllers/DashboardController.php +++ b/app/Http/Controllers/DashboardController.php @@ -61,6 +61,7 @@ class DashboardController extends Controller { 'paramdisplay' => $data['paramdisplay'], 'query' => $model_class::getQueryString(), 'display' => $model_class::$dashboard_display, + 'columns' => $model_class::$dashboard_columns, 'button' => $model_class::$dashboard_button, 'idlink' => $model_class::$dashboard_id_link, 'sortcol' => $model_class::$dashboard_reorder ? $model_class::$dashboard_sort_column : false, diff --git a/resources/sass/dashboard.scss b/resources/sass/dashboard.scss index 9b4abf9..3ac2b08 100644 --- a/resources/sass/dashboard.scss +++ b/resources/sass/dashboard.scss @@ -792,6 +792,7 @@ body { @include media-breakpoint-up(md) { overflow: hidden; + display: flex; flex-grow: 1; white-space: nowrap; } @@ -842,6 +843,23 @@ body { .column { display: inline-block; + + .image-preview { + @include aspect-ratio(16, 9); + display: block; + background-position: center center; + background-size: cover; + background-repeat: no-repeat; + + @include media-breakpoint-down(md) { + width: pxrem(150); + max-width: 100%; + } + + @include media-breakpoint-up(md) { + width: pxrem(43); + } + } } .spacer { @@ -851,6 +869,7 @@ body { } @include media-breakpoint-up(md) { + margin: 0px pxrem(5); display: inline-block; } } diff --git a/resources/views/dashboard/pages/edit-list.blade.php b/resources/views/dashboard/pages/edit-list.blade.php index 2996476..fa0f1fa 100644 --- a/resources/views/dashboard/pages/edit-list.blade.php +++ b/resources/views/dashboard/pages/edit-list.blade.php @@ -128,8 +128,45 @@ @endif @foreach($display as $index => $display_column) - @if($row[$display_column] != '') -