Top 5 sur ordinateur : n°1 plus grand, n°2 à 5 en petit comme sur mobile
deploy / deploy (push) Successful in 52s
deploy / deploy (push) Successful in 52s
La rangée des n°2 à 5 ne s'étire plus sur toute la largeur de l'écran. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YVo1qxKoBQCaMd7Ue8PGbe
This commit is contained in:
1 file changed
+5
-4
@@ -35,7 +35,7 @@ function EmptySlot({ rank, onClick, big }: { rank: number; onClick: () => void;
|
|||||||
onClick={onClick}
|
onClick={onClick}
|
||||||
className={cx(
|
className={cx(
|
||||||
'grid aspect-[2/3] place-items-center rounded-xl border border-dashed border-line-strong text-ink-3 transition-colors active:bg-surface-2',
|
'grid aspect-[2/3] place-items-center rounded-xl border border-dashed border-line-strong text-ink-3 transition-colors active:bg-surface-2',
|
||||||
big ? 'w-32' : 'w-full',
|
big ? 'w-32 lg:w-40' : 'w-full',
|
||||||
)}
|
)}
|
||||||
aria-label={t('top.pick', { rank })}
|
aria-label={t('top.pick', { rank })}
|
||||||
>
|
>
|
||||||
@@ -100,7 +100,7 @@ export default function TopFive({ onOpen }: { onOpen: (item: MediaItem) => void
|
|||||||
<RankNumber rank={1} big />
|
<RankNumber rank={1} big />
|
||||||
</span>
|
</span>
|
||||||
{first ? (
|
{first ? (
|
||||||
<button onClick={() => onOpen(first)} className="relative z-10 w-32">
|
<button onClick={() => onOpen(first)} className="relative z-10 w-32 lg:w-40">
|
||||||
<Poster src={first.poster} title={first.title} />
|
<Poster src={first.poster} title={first.title} />
|
||||||
</button>
|
</button>
|
||||||
) : (
|
) : (
|
||||||
@@ -126,8 +126,9 @@ export default function TopFive({ onOpen }: { onOpen: (item: MediaItem) => void
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* N°2 à 5 : chiffres en contour qui dépassent derrière les affiches */}
|
{/* N°2 à 5 : chiffres en contour qui dépassent derrière les affiches.
|
||||||
<div className="mt-14 grid grid-cols-4 gap-x-2">
|
Sur grand écran, la rangée garde les proportions du mobile (affiches plus petites que le n°1). */}
|
||||||
|
<div className="mt-14 grid max-w-xl grid-cols-4 gap-x-2 lg:gap-x-4">
|
||||||
{[2, 3, 4, 5].map((rank) => {
|
{[2, 3, 4, 5].map((rank) => {
|
||||||
const item = byRank.get(rank)
|
const item = byRank.get(rank)
|
||||||
return (
|
return (
|
||||||
|
|||||||
Reference in new issue
Block a user