Skip to content

Commit

Permalink
Make currently printing not invisible on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
techenby committed May 17, 2023
1 parent e0576fa commit 17748d8
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/Filament/Pages/Dashboard.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ protected function getWidgets(): array
return Filament::getWidgets();
}

protected function getColumns(): int|array
protected function getColumns(): int | string | array
{
return 3;
return 2;
}
}
2 changes: 2 additions & 0 deletions app/Filament/Widgets/AssignMaterials.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ class AssignMaterials extends BaseWidget
{
protected static ?int $sort = 3;

protected int|string|array $columnSpan = 1;

protected function getTableQuery(): Builder
{
return Printer::forCurrentTeam()->whereNull('material_id');
Expand Down
2 changes: 2 additions & 0 deletions app/Filament/Widgets/ConnectionIssues.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ class ConnectionIssues extends BaseWidget
{
protected static ?int $sort = 3;

protected int|string|array $columnSpan = 1;

protected function getTableQuery(): Builder
{
return Printer::forCurrentTeam()->whereIn('status', ['offline', 'error']);
Expand Down
2 changes: 1 addition & 1 deletion app/Filament/Widgets/CurrentlyPrinting.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class CurrentlyPrinting extends BaseWidget
{
protected static ?int $sort = 1;

protected int|string|array $columnSpan = 'full';
protected int|string|array $columnSpan = 2;

protected function getTableQuery(): Builder
{
Expand Down
2 changes: 2 additions & 0 deletions app/Filament/Widgets/StandbyPrinters.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ class StandbyPrinters extends BaseWidget
{
protected static ?int $sort = 3;

protected int|string|array $columnSpan = 1;

protected function getTableQuery(): Builder
{
return Printer::forCurrentTeam()->whereIn('status', ['operational']);
Expand Down

0 comments on commit 17748d8

Please sign in to comment.