From e98ffa9baf0b23f2a86f4f5443f4ea626d0b9533 Mon Sep 17 00:00:00 2001 From: 24bartixx Date: Sun, 29 Mar 2026 23:38:50 +0200 Subject: [PATCH 1/2] feat: styling enhancements for creator --- .../creator/creator-board/creator-board.tsx | 2 +- .../creator-control/creator-control.tsx | 20 +++++++++++++---- .../creator-items-select.tsx | 22 +++++++++---------- .../creator/creator-name/creator-name.tsx | 7 ++++-- client/src/pages/creator.tsx | 16 +++++++------- 5 files changed, 41 insertions(+), 26 deletions(-) diff --git a/client/src/components/creator/creator-board/creator-board.tsx b/client/src/components/creator/creator-board/creator-board.tsx index 16d1a95..71ed178 100644 --- a/client/src/components/creator/creator-board/creator-board.tsx +++ b/client/src/components/creator/creator-board/creator-board.tsx @@ -41,7 +41,7 @@ export function CreatorBoard({ dims }: CreatorBoardProps) { return (
diff --git a/client/src/components/creator/creator-control/creator-control.tsx b/client/src/components/creator/creator-control/creator-control.tsx index e07b465..31b89f9 100644 --- a/client/src/components/creator/creator-control/creator-control.tsx +++ b/client/src/components/creator/creator-control/creator-control.tsx @@ -27,7 +27,11 @@ export function CreatorControl({ dims, setDims }: CreatorControlProps) { const isColsMax = cols >= MAX_DIM; return ( -
+
+ {/* Removed inline
); } diff --git a/client/src/components/creator/creator-items-select/creator-items-select.tsx b/client/src/components/creator/creator-items-select/creator-items-select.tsx index 3f7194d..6d83358 100644 --- a/client/src/components/creator/creator-items-select/creator-items-select.tsx +++ b/client/src/components/creator/creator-items-select/creator-items-select.tsx @@ -14,34 +14,34 @@ export function CreatorItemsSelect() { const [selected, setSelected] = useState(MENU_OPTIONS[0].key); return ( -
- {/* Common width container for menu and select */} -
+
+
{/* Options Menu */}
{MENU_OPTIONS.map((option) => ( ))}
- {/* Options Select (empty for now) */} -
- - Options Select + {/* Show selected option label */} +
+ + {MENU_OPTIONS.find((option) => option.key === selected)?.label}
diff --git a/client/src/components/creator/creator-name/creator-name.tsx b/client/src/components/creator/creator-name/creator-name.tsx index a707ae9..a868f92 100644 --- a/client/src/components/creator/creator-name/creator-name.tsx +++ b/client/src/components/creator/creator-name/creator-name.tsx @@ -29,14 +29,17 @@ export function CreatorName({ levelName, setLevelName }: CreatorNameProps) { }; return ( -
+
{!isEditing ? (
-

+

{levelName || "Untitled Level"}

diff --git a/client/src/pages/creator.tsx b/client/src/pages/creator.tsx index dc45345..828cde3 100644 --- a/client/src/pages/creator.tsx +++ b/client/src/pages/creator.tsx @@ -1,4 +1,4 @@ -import { useEffect, useRef, useState } from "react"; +import { useState } from "react"; import { CreatorBoard } from "../components/creator/creator-board/creator-board"; import { CreatorControl } from "../components/creator/creator-control/creator-control"; @@ -10,20 +10,20 @@ export function Creator() { const [dims, setDims] = useState<[number, number]>([7, 8]); return ( -
-
-
+
+
+
-
+
-
-
+
+
-
+
From 10f7889bb28a1b894aff3342b783b6f2bb06bbe9 Mon Sep 17 00:00:00 2001 From: 24bartixx Date: Sun, 29 Mar 2026 23:55:22 +0200 Subject: [PATCH 2/2] chore: remove unncessary comments --- .../creator/creator-control/creator-control.tsx | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/client/src/components/creator/creator-control/creator-control.tsx b/client/src/components/creator/creator-control/creator-control.tsx index 31b89f9..15dbcbd 100644 --- a/client/src/components/creator/creator-control/creator-control.tsx +++ b/client/src/components/creator/creator-control/creator-control.tsx @@ -27,11 +27,7 @@ export function CreatorControl({ dims, setDims }: CreatorControlProps) { const isColsMax = cols >= MAX_DIM; return ( -
- {/* Removed inline
); }