optimize for mobile

This commit is contained in:
HolgerHatGarKeineNode
2023-02-10 17:39:41 +01:00
parent 55e87b3aa5
commit d753af1123

View File

@@ -81,7 +81,8 @@ class BookCaseTable extends DataTableComponent
$row, $row,
Column $column Column $column
) => $row->orangePills->sum('amount') ) => $row->orangePills->sum('amount')
), )
->collapseOnMobile(),
Column::make("Letzter Input") Column::make("Letzter Input")
->label( ->label(
fn( fn(
@@ -90,7 +91,8 @@ class BookCaseTable extends DataTableComponent
) => $row->orangePills() ) => $row->orangePills()
->latest() ->latest()
->first()?->date->asDate() ->first()?->date->asDate()
), )
->collapseOnMobile(),
Column::make("Link") Column::make("Link")
->label( ->label(
fn( fn(
@@ -98,11 +100,13 @@ class BookCaseTable extends DataTableComponent
Column $column Column $column
) => $row->homepage ? '<a target="_blank" class="underline text-amber-500" href="'.$this->url_to_absolute($row->homepage).'">Link</a>' : null ) => $row->homepage ? '<a target="_blank" class="underline text-amber-500" href="'.$this->url_to_absolute($row->homepage).'">Link</a>' : null
) )
->html(), ->html()
->collapseOnMobile(),
Column::make('Orange-Pilled', 'orange_pilled') Column::make('Orange-Pilled', 'orange_pilled')
->label(fn($row, Column $column) => view('columns.book_cases.oranged-pilled') ->label(fn($row, Column $column) => view('columns.book_cases.oranged-pilled')
->withRow($row) ->withRow($row)
->withCountry($this->country)) ->withCountry($this->country))
->collapseOnMobile(),
]; ];
} }