refactor: Update dashboard layout to a 2-column grid and adjust widget column spans accordingly.
This commit is contained in:
parent
e54eaafccc
commit
427805ebd1
@ -16,6 +16,11 @@ class Dashboard extends BaseDashboard
|
|||||||
{
|
{
|
||||||
use HasFiltersForm, HasPageShield;
|
use HasFiltersForm, HasPageShield;
|
||||||
|
|
||||||
|
public function getColumns(): int|array
|
||||||
|
{
|
||||||
|
return 2;
|
||||||
|
}
|
||||||
|
|
||||||
public function filtersForm(Schema $schema): Schema
|
public function filtersForm(Schema $schema): Schema
|
||||||
{
|
{
|
||||||
return $schema
|
return $schema
|
||||||
|
|||||||
@ -17,7 +17,7 @@ class IssueLocationChart extends ChartWidget
|
|||||||
|
|
||||||
protected static ?int $sort = 15;
|
protected static ?int $sort = 15;
|
||||||
|
|
||||||
protected int|string|array $columnSpan = 'full';
|
protected int|string|array $columnSpan = 1;
|
||||||
|
|
||||||
protected function getData(): array
|
protected function getData(): array
|
||||||
{
|
{
|
||||||
|
|||||||
@ -17,7 +17,7 @@ class JournalistRegistrationChart extends ChartWidget
|
|||||||
|
|
||||||
protected static ?int $sort = 8;
|
protected static ?int $sort = 8;
|
||||||
|
|
||||||
protected int|string|array $columnSpan = 'full';
|
protected int|string|array $columnSpan = 1;
|
||||||
|
|
||||||
protected function getData(): array
|
protected function getData(): array
|
||||||
{
|
{
|
||||||
|
|||||||
@ -17,7 +17,7 @@ class MediaCooperationRankingChart extends ChartWidget
|
|||||||
|
|
||||||
protected static ?int $sort = 11;
|
protected static ?int $sort = 11;
|
||||||
|
|
||||||
protected int|string|array $columnSpan = 'full';
|
protected int|string|array $columnSpan = 1;
|
||||||
|
|
||||||
protected function getData(): array
|
protected function getData(): array
|
||||||
{
|
{
|
||||||
|
|||||||
@ -17,7 +17,7 @@ class MediaRegistrationChart extends ChartWidget
|
|||||||
|
|
||||||
protected static ?int $sort = 4;
|
protected static ?int $sort = 4;
|
||||||
|
|
||||||
protected int|string|array $columnSpan = 'full';
|
protected int|string|array $columnSpan = 1;
|
||||||
|
|
||||||
protected function getData(): array
|
protected function getData(): array
|
||||||
{
|
{
|
||||||
|
|||||||
@ -15,7 +15,7 @@ class PopularNewsChart extends ChartWidget
|
|||||||
|
|
||||||
protected static ?int $sort = 13;
|
protected static ?int $sort = 13;
|
||||||
|
|
||||||
protected int|string|array $columnSpan = 'full';
|
protected int|string|array $columnSpan = 1;
|
||||||
|
|
||||||
protected function getData(): array
|
protected function getData(): array
|
||||||
{
|
{
|
||||||
|
|||||||
@ -15,7 +15,7 @@ class TopMediaJournalistChart extends ChartWidget
|
|||||||
|
|
||||||
protected static ?int $sort = 5;
|
protected static ?int $sort = 5;
|
||||||
|
|
||||||
protected int|string|array $columnSpan = 'full';
|
protected int|string|array $columnSpan = 1;
|
||||||
|
|
||||||
protected function getData(): array
|
protected function getData(): array
|
||||||
{
|
{
|
||||||
|
|||||||
@ -18,7 +18,7 @@ class VerificationPerformanceChart extends ChartWidget
|
|||||||
|
|
||||||
protected static ?int $sort = 14;
|
protected static ?int $sort = 14;
|
||||||
|
|
||||||
protected int|string|array $columnSpan = 'full';
|
protected int|string|array $columnSpan = 1;
|
||||||
|
|
||||||
protected function getData(): array
|
protected function getData(): array
|
||||||
{
|
{
|
||||||
|
|||||||
@ -17,7 +17,7 @@ class VisitorTrafficChart extends ChartWidget
|
|||||||
|
|
||||||
protected static ?int $sort = 12;
|
protected static ?int $sort = 12;
|
||||||
|
|
||||||
protected int|string|array $columnSpan = 'full';
|
protected int|string|array $columnSpan = 1;
|
||||||
|
|
||||||
protected function getData(): array
|
protected function getData(): array
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user