diff --git a/frontend/src/components/Cell.jsx b/frontend/src/components/Cell.jsx
index 2034cae..4960c2b 100644
--- a/frontend/src/components/Cell.jsx
+++ b/frontend/src/components/Cell.jsx
@@ -19,7 +19,7 @@ const Cell = ({ cell }) => {
let squareColor = getSquareColor(square);
let marked = isSquareMarked(square);
- let borderColor = isOver ? '#77777777' : 'transparent';
+ let borderColor = isOver ? '#77777744' : 'transparent';
let borderWidth = type ? '3px' : '5px'
const handleClick = () => {
@@ -30,22 +30,17 @@ const Cell = ({ cell }) => {
}
let content = null;
- if (marked) {
+ if (marked && !type) {
content =
} else if (type) {
content =
}
return (
- {
+ {
let color = theme.colors.lime;
- return { backgroundColor: squareColor === 'b' ? color[8] : color[1], filter: 'saturate(0.5)' }
+ return { backgroundColor: squareColor === 'b' ? '#769854' : '#e8edcd', aspectRatio: '1/1' }
}} onClick={handleClick} bg={squareColor === 'w' ? "white" : "gray"} >
- {
- isOver ?
-
- : null
- }
{content}
)
diff --git a/frontend/src/components/Piece.jsx b/frontend/src/components/Piece.jsx
index db5e079..cdf10e7 100644
--- a/frontend/src/components/Piece.jsx
+++ b/frontend/src/components/Piece.jsx
@@ -46,17 +46,19 @@ const Piece = ({ cell }) => {
}
});
- let borderColor = marked ? '#77777766' : 'transparent'
+ let borderColor = marked ? '#77777744' : 'transparent'
const style = transform ? {
transform: `translate3d(${transform.x}px, ${transform.y}px, 0)`,
cursor: isDragging ? 'grabbing' : 'pointer',
- zIndex: isDragging ? 1000 : 10,
+ zIndex: 1000,
aspectRatio: '1',
touchAction: 'none',
borderRadius: '10px',
outline: 'none'
- } : undefined;
+ } : {
+ zIndex: 10
+ };
useEffect(() => {
if (isDragging) {
@@ -67,15 +69,17 @@ const Piece = ({ cell }) => {
if (logo) {
return (
-
-
+
)
} else {
return (
-
+
)
}
}