From 946db3f57fe8e749a9c6190f0b065c7bf741286b Mon Sep 17 00:00:00 2001 From: spitfire305 Date: Mon, 8 Jul 2024 19:23:06 +0000 Subject: [PATCH] Fix styling --- app/Http/Controllers/Races/MemberController.php | 4 ++-- app/Renderers/Layouts/Race/Character.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/Http/Controllers/Races/MemberController.php b/app/Http/Controllers/Races/MemberController.php index 17c33309ab..3741711955 100644 --- a/app/Http/Controllers/Races/MemberController.php +++ b/app/Http/Controllers/Races/MemberController.php @@ -38,9 +38,9 @@ public function index(Campaign $campaign, Race $race) ->with([ 'race', 'race.entity', 'character', 'character.entity', 'character.entity.tags', 'character.entity.tags.entity', 'character.entity.image', - 'character.location', 'character.location.entity', + 'character.location', 'character.location.entity', 'character.characterRaces' - ]) + ]) ->has('character') ->has('character.entity') ->leftJoin('characters as c', 'c.id', 'character_race.character_id') diff --git a/app/Renderers/Layouts/Race/Character.php b/app/Renderers/Layouts/Race/Character.php index 698bf5ceee..01375ad661 100644 --- a/app/Renderers/Layouts/Race/Character.php +++ b/app/Renderers/Layouts/Race/Character.php @@ -39,7 +39,7 @@ public function columns(): array 'races' => [ 'label' => Module::plural(config('entities.ids.race'), 'entities.races'), 'class' => self::ONLY_DESKTOP, - 'render' => function($model) { + 'render' => function ($model) { $races = []; foreach ($model->character->characterRaces as $race) { if (!$race->race || !$race->race->entity) { @@ -47,7 +47,7 @@ public function columns(): array } $races[] = $this->entityLink($race->race); } - return implode( ', ', $races); + return implode(', ', $races); }, 'visible' => function () { return !request()->has('race_id');