Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
199ocero authored and github-actions[bot] committed Oct 4, 2024
1 parent c6e30a0 commit 585ea4a
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/Pages/FilaChat.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,10 @@ public static function getNavigationLabel(): string
return __(config('filachat.navigation_label'));
}

public static function getNavigationBadgeColor(): string|array|null
public static function getNavigationBadgeColor(): string | array | null
{
$count = intval(self::getNavigationBadge());

return $count > 0 ? 'danger' : parent::getNavigationBadgeColor();
}

Expand All @@ -38,10 +39,11 @@ public static function getNavigationBadge(): ?string
->where('last_read_at', null)
->where('receiverable_id', auth()->id())->count();
}

return parent::getNavigationBadge();
}

public static function getNavigationIcon(): string|Htmlable|null
public static function getNavigationIcon(): string | Htmlable | null
{
return config('filachat.navigation_icon');
}
Expand Down Expand Up @@ -70,12 +72,12 @@ public function getTitle(): string
return __(config('filachat.navigation_label'));
}

public function getMaxContentWidth(): MaxWidth|string|null
public function getMaxContentWidth(): MaxWidth | string | null
{
return config('filachat.max_content_width');
}

public function getHeading(): string|Htmlable
public function getHeading(): string | Htmlable
{
return ''; // should be empty by default
}
Expand Down

0 comments on commit 585ea4a

Please sign in to comment.