mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
optimize for mobile
This commit is contained in:
@@ -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(),
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user