Skip to content

Commit

Permalink
chore: [LAR-168] fix layout of leaderboard when user is guest (#291)
Browse files Browse the repository at this point in the history
  • Loading branch information
mckenziearts authored Jan 1, 2025
1 parent abf60ae commit 4599c9a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions resources/views/layouts/forum.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,20 +81,20 @@ class="hidden"

<div @class([
'mt-6 sm:mt-0',
'lg:col-span-8' => $isLogged,
'lg:col-span-6' => ! $isLogged,
'lg:col-span-8' => $isLogged || request()->routeIs('forum.leaderboard'),
'lg:col-span-6' => ! $isLogged && ! request()->routeIs('forum.leaderboard'),
])>
{{ $slot }}
</div>

@guest
@if(! request()->routeIs('forum.leaderboard') && \Illuminate\Support\Facades\Auth::guest())
<aside class="hidden lg:block lg:col-span-2">
<x-sticky-content class="space-y-10">
<x-ads />
<x-discord />
</x-sticky-content>
</aside>
@endguest
@endif
</div>
</x-container>
</x-app-layout>

0 comments on commit 4599c9a

Please sign in to comment.