diff --git a/app/Entities/EpisodeComment.php b/app/Entities/EpisodeComment.php index d30e3c5a..4d4774e4 100644 --- a/app/Entities/EpisodeComment.php +++ b/app/Entities/EpisodeComment.php @@ -119,7 +119,7 @@ class EpisodeComment extends UuidEntity public function getHasReplies(): bool { - return $this->getReplies() !== null; + return $this->getReplies() !== []; } public function getReplyToComment(): ?self diff --git a/app/Helpers/components_helper.php b/app/Helpers/components_helper.php index fd05c267..15ad1c08 100644 --- a/app/Helpers/components_helper.php +++ b/app/Helpers/components_helper.php @@ -24,9 +24,9 @@ if (! function_exists('hint_tooltip')) { function hint_tooltip(string $hintText = '', string $class = ''): string { $tooltip = - '', 'thead_open' => - '', + '', 'heading_cell_start' => '', 'cell_start' => '', 'cell_alt_start' => '', - 'row_start' => '', - 'row_alt_start' => '', + 'row_start' => '', + 'row_alt_start' => '', ]; $table->setTemplate($template); @@ -88,7 +88,7 @@ if (! function_exists('data_table')) { return lang('Common.no_data'); } - return '
' . + return '
' . $table->generate() . '
'; } @@ -105,7 +105,7 @@ if (! function_exists('publication_pill')) { function publication_pill(?Time $publicationDate, string $publicationStatus, string $customClass = ''): string { $class = match ($publicationStatus) { - 'published' => 'text-pine-600 border-pine-600 bg-pine-50', + 'published' => 'text-pine-500 border-pine-500 bg-pine-50', 'scheduled' => 'text-red-600 border-red-600 bg-red-50', 'not_published' => 'text-gray-600 border-gray-600 bg-gray-50', default => 'text-gray-600 border-gray-600 bg-gray-50', @@ -208,7 +208,7 @@ if (! function_exists('episode_numbering')) { $class . '" title="' . lang($transKey, $args) . - '">' . + '" data-tooltip="bottom">' . lang($transKey . '_abbr', $args) . ''; } @@ -238,7 +238,7 @@ if (! function_exists('location_link')) { icon('map-pin', 'mr-2') . $location->name, [ 'class' => - 'inline-flex items-baseline hover:underline focus:ring-castopod' . + 'inline-flex items-baseline hover:underline focus:ring-accent' . ($class === '' ? '' : " {$class}"), 'target' => '_blank', 'rel' => 'noreferrer noopener', @@ -264,8 +264,8 @@ if (! function_exists('audio_player')) { theme="light" language="{$language}" icons="castopod-icons" - class="{$class}" - style="--vm-player-box-shadow:0; --vm-player-theme: #009486; --vm-control-spacing: 4px;" + class="{$class} relative z-0" + style="--vm-player-box-shadow:0; --vm-player-theme: hsl(var(--color-accent-base)); --vm-control-focus-color: hsl(var(--color-accent-contrast)); --vm-control-spacing: 4px; --vm-menu-item-focus-bg: hsl(var(--color-background-highlight));" > diff --git a/app/Helpers/page_helper.php b/app/Helpers/page_helper.php index 13ecee41..beb1eb27 100644 --- a/app/Helpers/page_helper.php +++ b/app/Helpers/page_helper.php @@ -20,17 +20,17 @@ if (! function_exists('render_page_links')) { { $pages = (new PageModel())->findAll(); $links = anchor(route_to('home'), lang('Common.home'), [ - 'class' => 'px-2 py-1 underline hover:no-underline focus:ring-castopod', + 'class' => 'px-2 py-1 underline hover:no-underline focus:ring-accent', ]); $links .= anchor(route_to('credits'), lang('Person.credits'), [ - 'class' => 'px-2 py-1 underline hover:no-underline focus:ring-castopod', + 'class' => 'px-2 py-1 underline hover:no-underline focus:ring-accent', ]); $links .= anchor(route_to('map'), lang('Page.map'), [ - 'class' => 'px-2 py-1 underline hover:no-underline focus:ring-castopod', + 'class' => 'px-2 py-1 underline hover:no-underline focus:ring-accent', ]); foreach ($pages as $page) { $links .= anchor($page->link, $page->title, [ - 'class' => 'px-2 py-1 underline hover:no-underline focus:ring-castopod', + 'class' => 'px-2 py-1 underline hover:no-underline focus:ring-accent', ]); } diff --git a/app/Resources/js/audio-player.ts b/app/Resources/js/audio-player.ts index 41a17ab8..577853e4 100644 --- a/app/Resources/js/audio-player.ts +++ b/app/Resources/js/audio-player.ts @@ -39,14 +39,18 @@ import "./modules/play-episode-button"; const player = html`