fix: keyboard navigation on tv results

This commit is contained in:
2025-06-08 10:39:46 -05:00
parent ce5bc525dd
commit b5cd240fbd
2 changed files with 7 additions and 10 deletions

View File

@@ -52,13 +52,13 @@ final class TorrentioController extends AbstractController
$input->episode,
);
return $cache->get($cacheId, function (ItemInterface $item) use ($input) {
$item->expiresAt(Carbon::now()->addHour()->setMinute(0)->setSecond(0));
// return $cache->get($cacheId, function (ItemInterface $item) use ($input) {
// $item->expiresAt(Carbon::now()->addHour()->setMinute(0)->setSecond(0));
$results = $this->getTvShowOptionsHandler->handle($input->toCommand());
return $this->render('torrentio/tvshows.html.twig', [
'results' => $results,
]);
});
// });
}
#[Route('/torrentio/tvshows/clear/{tmdbId}/{imdbId}/{season?}/{episode?}', name: 'app_clear_torrentio_tvshows')]

View File

@@ -13,11 +13,11 @@
</h4>
<p>{{ results.media.description }}</p>
<div>
<small class="py-1 px-1.5 mr-1 grow-0 font-bold bg-green-600 rounded-lg hover:cursor-pointer hover:bg-green-700 text-white"
<button class="py-1 px-1.5 mr-1 grow-0 font-bold text-xs bg-green-600 rounded-lg hover:cursor-pointer hover:bg-green-700 text-white"
{{ stimulus_action('tv-results', 'toggleList', 'click') }}
>
<span {{ stimulus_target('tv-results', 'count') }}>{{ results.results|length }}</span> results
</small>
</button>
{% if results.file != false %}
<span data-controller="popover">
@@ -57,16 +57,13 @@
<input type="checkbox"
{{ stimulus_target('tv-results', 'episodeSelector') }}
/>
<span title="You have this downloaded!">
<twig:ux:icon width="20" class="mt-2 text-green-600" name="line-md:circle-twotone" />
</span>
</div>
<div class="flex flex-col items-end hover:cursor-pointer"
<button class="flex flex-col items-end"
{{ stimulus_action('tv-results', 'toggleList', 'click') }}>
<svg xmlns="http://www.w3.org/2000/svg" width="2em" height="2em" viewBox="0 0 32 32">
<path fill="currentColor" d="m16 10l10 10l-1.4 1.4l-8.6-8.6l-8.6 8.6L6 20z"/>
</svg>
</div>
</button>
</div>
</div>
<div class="inline-block overflow-hidden rounded-lg">