Skip to content

Commit b979ef7

Browse files
committed
vhをdvhに変更
1 parent bb009d4 commit b979ef7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

web/components/Card.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export function Card({ displayedUser, comparisonUserId, onFlip }: CardProps) {
2222
return (
2323
<div
2424
className="perspective-[1000px] relative cursor-pointer"
25-
style={{ width: "min(40dvh, 87.5vw)", height: "70vh" }}
25+
style={{ width: "min(40dvh, 87.5vw)", height: "70dvh" }}
2626
onClick={handleRotate}
2727
onKeyDown={(event) => {
2828
if (event.key === "Enter" || event.key === " ") handleRotate();
@@ -64,8 +64,8 @@ const CardFront = ({ displayedUser }: CardProps) => {
6464
<div className="grid h-[30%] grid-cols-3 items-center">
6565
<UserAvatar
6666
pictureUrl={displayedUser.pictureUrl}
67-
width="10vh"
68-
height="10vh"
67+
width="10dvh"
68+
height="10dvh"
6969
/>
7070
<div className="col-span-2 ml-2 flex justify-center">
7171
<span className="font-bold text-4xl">{displayedUser.name}</span>

0 commit comments

Comments
 (0)