Skip to content

Commit

Permalink
Add height to StyledSquare component for consistent button sizing
Browse files Browse the repository at this point in the history
  • Loading branch information
athrvk committed Dec 12, 2024
1 parent 583bf17 commit d0cec46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/components/Game/Square.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import styled from 'styled-components';

const StyledSquare = styled.button`
width: 100%;
height: 100%;
aspect-ratio: 1;
border: ${(props) => props.isWinning ? "4px" : "2px"} solid ${({ theme }) => theme.colors.border};
background: none;
Expand All @@ -14,7 +15,6 @@ const StyledSquare = styled.button`
props.theme.colors.primary :
props.theme.colors.secondary
};
background: 'none';
transform: ${props => props.isWinning ? 'scale(1.05)' : 'scale(1)'};
&:hover:not(:disabled) {
Expand Down

0 comments on commit d0cec46

Please sign in to comment.