Stream page sidebar make padding consistent

This commit is contained in:
2026-05-22 23:10:41 +02:00
parent ba3650899e
commit 5f3874a233
3 changed files with 44 additions and 50 deletions

View File

@@ -1,24 +1,22 @@
<div class="pt-2 sm:px-2 lg:px-4 2xl:w-[450px]">
<div class="bg-transparent rounded-lg overflow-hidden p-2">
@if (count($popularWeekly) > 0)
<p class="leading-normal font-bold text-xl dark:text-white pb-2">
{{ __('home.popular-weekly') }}
</p>
<div class="text-center xl:text-left">
<ul class="inline-block xl:block">
@php $counter = 0; @endphp
@foreach ($popularWeekly as $pEpisode)
@php $episode = $pEpisode->episode; @endphp
@if($counter >= 8)
@continue
@endif
<li>
<x-episode-cover :episode="$episode" view="thumbnail"/>
</li>
@php $counter += 1; @endphp
@endforeach
</ul>
</div>
@endif
<div class="pt-2 sm:px-2 lg:px-4 2xl:w-[450px] p-2">
@if (count($popularWeekly) > 0)
<p class="leading-normal font-bold text-xl dark:text-white pb-2">
{{ __('home.popular-weekly') }}
</p>
<div class="text-center xl:text-left">
<ul class="inline-block xl:block">
@php $counter = 0; @endphp
@foreach ($popularWeekly as $pEpisode)
@php $episode = $pEpisode->episode; @endphp
@if($counter >= 8)
@continue
@endif
<li>
<x-episode-cover :episode="$episode" view="thumbnail"/>
</li>
@php $counter += 1; @endphp
@endforeach
</ul>
</div>
@endif
</div>