Merge pull request #45 from cinderblockgames/master

settings modal position fix
This commit is contained in:
Bastian Meissner 2021-11-18 19:08:13 +01:00 committed by GitHub
commit 0d07f3abce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View file

@ -17,6 +17,7 @@ const StyledButton = styled.button`
border: none;
padding: 0;
background: none;
font-size: 1rem;
&:hover {
cursor: pointer;

View file

@ -7,9 +7,9 @@ import { IconButton } from "./icon";
const ModalContainer = styled.div`
position: absolute;
left: 50%;
top: 50%;
top: 1rem;
padding: 1rem;
transform: translate(-50%, -50%);
transform: translate(-50%, 0%);
z-index: 10;
border: 1px solid ${(props) => props.theme.mainColor};
background-color: ${(props) => props.theme.backgroundColor};