Skip to content

Commit

Permalink
feat: use grid to layout
Browse files Browse the repository at this point in the history
  • Loading branch information
nomyfan committed Nov 14, 2024
1 parent b4dd6dc commit a3b882b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/gameboy/src/components/play/Play.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,9 @@ export function Play(props: IPagePlayProps) {

return (
<>
<div className="flex justify-end bg-bg" style={props.style}>
<div className="grid grid-cols-[1fr_auto_1fr] bg-bg" style={props.style}>
<DebugCanvas ref={dbgCanvasRef} />
<div className="flex justify-end basis-0 grow shrink-0">
<div className="flex justify-end">
{showActionButtons && (
<div className="pt-5 pr-5">
<DirectionButton
Expand All @@ -131,11 +131,11 @@ export function Play(props: IPagePlayProps) {
)}
</div>

<div className="flex items-center shrink-0">
<div className="flex items-center">
<Screen ref={canvasRef} />
</div>

<div className="basis-0 grow shrink-0">
<div>
{showActionButtons && (
<div className="pl-5 pt-5">
<AbButton
Expand Down

0 comments on commit a3b882b

Please sign in to comment.