Skip to content

Commit

Permalink
ui fix
Browse files Browse the repository at this point in the history
  • Loading branch information
supreme2580 committed Dec 13, 2024
1 parent 3b84012 commit 67a7876
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion frontend/src/canvas/CanvasContainer.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
}

.CanvasContainer__grid {
background: rgba(0, 0, 0, 0.2);
/* background: rgba(0, 0, 0, 0.2); */
padding: 20px;
border-radius: 8px;
}
Expand Down
5 changes: 3 additions & 2 deletions frontend/src/canvas/CanvasContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,7 @@ const CanvasContainer = (props) => {
className='CanvasContainer__grid'
style={{
display: 'grid',
gridTemplateColumns: `repeat(${GRID_SIZE}, ${props.width}px)`,
// gridTemplateColumns: `repeat(${GRID_SIZE}, ${props.width}px)`,
gridGap: '20px',
position: 'absolute',
top: '50%',
Expand All @@ -584,7 +584,8 @@ const CanvasContainer = (props) => {
transformOrigin: 'center'
}}
>
{Array.from({ length: GRID_SIZE * GRID_SIZE }, (_, index) => {
{/* {Array.from({ length: GRID_SIZE * GRID_SIZE }, (_, index) => { */}
{Array.from({ length: 1 }, (_, index) => {
const row = Math.floor(index / GRID_SIZE);
const col = index % GRID_SIZE;
const isCenter = row === CENTER_POS && col === CENTER_POS;
Expand Down

0 comments on commit 67a7876

Please sign in to comment.