Skip to content

Commit

Permalink
Fix style issues
Browse files Browse the repository at this point in the history
  • Loading branch information
mhzrerfani committed Oct 14, 2024
1 parent ca08248 commit cac145d
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 6 deletions.
1 change: 1 addition & 0 deletions apps/web/src/app/@modal/(.)create/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ const INITIAL_FORM_VALUES: FormValues = {
minPlayers: 2,
minBuyIn: 100,
maxBuyIn: 1000,
maxPlayers: 9,
waitingTimeout: 3600,
chipUnit: ChipUnits.apt,
};
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/app/games/[id]/components/GameContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default function GameContainer({ children }: PropsWithChildren) {
<div
className={`flex flex-col relative items-center justify-center py-2 bg-[url("/images/pixel-wooden-pattern.png")] bg-repeat bg-center bg-[length:120px_120px] overflow-hidden h-[100dvh] w-[100dvw] z-50 min-h-screen`}
>
{children}
<div className="h-full max-w-[2000px] mx-auto w-full relative">{children}</div>
</div>
);
}
2 changes: 1 addition & 1 deletion apps/web/src/app/games/[id]/components/PlayerActions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export default function PlayerActions() {
};

return (
<div className="fixed bottom-5 gap-5 left-5 right-5 flex justify-center ">
<div className="fixed bottom-5 gap-5 left-5 right-5 flex justify-center max-w-[1000px] mx-auto">
{actions.map((action) => (
<button
key={action}
Expand Down
5 changes: 3 additions & 2 deletions apps/web/src/app/games/[id]/components/Seat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,8 @@ export default function Seat({
}}
/>
<div className="bg-black/70 shrink-0 flex-col rounded-sm line-clamp-1 relative flex justify-center text-[6px] text-white text-center shadow-2xl md:text-sm px-1 ">
<span>{player.id.slice(2, 8)} </span> <span>${player.balance}</span>
<span>{seatNumber === 1 ? "me" : player.id.slice(2, 8)} </span>{" "}
<span>${player.balance}</span>
</div>
</div>

Expand Down Expand Up @@ -152,7 +153,7 @@ export default function Seat({
CARDS_MAP[cardName] && (
<Card
className={`
w-10 sm:w-32 z-50 relative
w-10 sm:w-32 z-50 relative
${
i === 0
? "animate-dealAndRotate1"
Expand Down
5 changes: 3 additions & 2 deletions apps/web/src/components/Modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,18 @@ export default function Modal({
return (
<motion.div
ref={overlay}
className="fixed z-50 inset-0 flex justify-center items-center animate-fadeIn"
className="fixed w-screen z-50 inset-0 flex justify-center items-center animate-fadeIn h-[100dvh] overflow-auto"
animate={{ opacity: 1 }}
exit={{ opacity: 0 }}
transition={{ duration: 0.3 }}
>
<div
ref={wrapper}
className={cn(
`absolute rounded-2xl p-10 bg-[url("/images/wood-pattern-light.png")] pt-12 bg-repeat bg-center bg-[length:200px_200px] border-8 shadow border-[#b87d5b]`,
`rounded-2xl p-10 bg-[url("/images/wood-pattern-light.png")] pt-12 overflow-auto max-h-[100dvh] bg-repeat bg-center bg-[length:200px_200px] border-8 shadow border-[#b87d5b]`,
className,
)}
style={{ transform: "translate(-50%, -50%)" }}
>
{closeButton && (
<button
Expand Down

0 comments on commit cac145d

Please sign in to comment.