Skip to content

Commit e7dcce6

Browse files
committed
fix(tiles): prevent tiles from becoming too big
1 parent d969c30 commit e7dcce6

2 files changed

Lines changed: 4 additions & 9 deletions

File tree

components/TileItem.vue

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,19 +39,14 @@ async function shufflePodcast() {
3939
<template>
4040
<div
4141
v-if="item.showAllLink && item.track && item.title"
42-
class="flex w-full flex-col gap-4 rounded-2xl p-4 lg:aspect-[2/1] lg:flex-row lg:gap-0 lg:p-0"
42+
class="flex flex-col gap-4 overflow-clip rounded-3xl p-4 lg:aspect-[2/1] lg:flex-row lg:gap-0 lg:p-0"
4343
:style="'background: ' + (item.backgroundColor ?? '#F5F6F7')"
4444
>
4545
<NuxtLink
4646
:to="parseLink(item.showAllLink)"
47-
class="aspect-square w-[120px] rounded-2xl bg-background-1 lg:w-1/2 lg:rounded-none lg:rounded-l-2xl"
47+
class="aspect-square w-[120px] overflow-clip rounded-2xl bg-background-1 lg:w-1/2 lg:rounded-none"
4848
>
49-
<CoverImage
50-
:src="item.coverUrl"
51-
:alt="item.title"
52-
class="rounded-2xl lg:rounded-none lg:rounded-l-2xl"
53-
no-border
54-
/>
49+
<CoverImage :src="item.coverUrl" :alt="item.title" no-border />
5550
</NuxtLink>
5651
<div
5752
class="flex grow cursor-pointer flex-col gap-0.5 rounded-r-2xl p-0 text-black-1 lg:w-1/2 lg:p-4"

tailwind.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const config: Partial<Config> = {
1515
extend: {
1616
gridTemplateColumns: {
1717
tracklist: "min-content auto auto auto min-content",
18-
tilesWide: "repeat(auto-fit, minmax(350px, 1fr))",
18+
tilesWide: "repeat(auto-fill, minmax(350px, 1fr))",
1919
tilesNarrow: "repeat(auto-fit, minmax(200px, 1fr))",
2020
tilesOneLine: "repeat(10, minmax(220px, 1fr))",
2121
coverList: "repeat(auto-fill, minmax(158px, 1fr))",

0 commit comments

Comments
 (0)