Skip to content

Commit

Permalink
Improve archive breakpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
KwikKill committed Nov 21, 2024
1 parent c6bea9f commit de25e9e
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/views/Archives.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,21 @@ await fetchAllEvents();
{{ event.name }} | {{ `${String(event.month).padStart(2, '0')}/${event.year}` }}
</h2>
<div
class="mx-2 mb-2 flex flex-col gap-4 md:grid md:grid-cols-2 xl:grid-cols-3"
class="mx-2 mb-2 flex flex-col gap-4 px-4 md:grid md:grid-cols-2 xl:grid-cols-3 2xl:grid-cols-4"
>
<img
v-if="event.poster"
:src="event.poster"
class="w-full object-contain"
:alt="`Poster ${event.name}`"
/>
<div class="col-span-2 mb-4 grid gap-4 px-4 md:grid-cols-2 xl:grid-cols-2 2xl:grid-cols-3">
<div
class=" mb-4 grid gap-4"
:class="{
'col-span-4 md:grid-cols-2 xl:grid-cols-3 2xl:grid-cols-4': !event.poster,
'col-span-1 md:grid-cols-1 xl:col-span-2 xl:grid-cols-2 2xl:col-span-3 2xl:grid-cols-3': event.poster,
}"
>
<div
v-for="tournament in event.tournaments"
:key="tournament"
Expand Down

0 comments on commit de25e9e

Please sign in to comment.