Skip to content
This repository has been archived by the owner on Jan 25, 2025. It is now read-only.

Commit

Permalink
Merge pull request #40 from crow-fox/fix/layout-shift
Browse files Browse the repository at this point in the history
レイアウトシフトを防ぐためColorGridItemとサイズを揃える
  • Loading branch information
crow-fox authored May 8, 2024
2 parents eaada59 + 5e3042b commit aeb334c
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions app/_features/color/FallbackColorGridItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,17 @@ type Props = {

export function FallbackColorGridItem({ color }: Props) {
return (
<div className="grid gap-y-3 p-2 hover:shadow-[inset_0_0_0_2px_black]">
<div className="grid gap-y-2 p-2">
<div
className="grid h-10 w-full min-w-20 place-content-center rounded-md border border-gray-100 text-xs/none dark:border-gray-800 "
className="grid h-10 w-full min-w-20 place-content-center rounded-md border border-gray-100 dark:border-gray-800 "
style={{
backgroundColor: color.value,
}}
></div>
<p className=" text-sm/none ">{color.value}</p>
<div className="grid grid-cols-[auto_1fr] items-center gap-x-1 ">
<p className="text-sm/none ">{color.value}</p>
<div className="size-6"></div>
</div>
</div>
);
}

0 comments on commit aeb334c

Please sign in to comment.