mirror of
https://github.com/Vikeo/LifeTrinket.git
synced 2025-11-16 15:58:00 +00:00
fix some scaling
This commit is contained in:
@@ -9,7 +9,7 @@ export const StyledSettingsButton = styled.button<{ rotation: number }>`
|
|||||||
border: none;
|
border: none;
|
||||||
outline: none;
|
outline: none;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
top: 12vmin;
|
top: 25%;
|
||||||
right: 1vmax;
|
right: 1vmax;
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
user-select: none;
|
user-select: none;
|
||||||
@@ -26,7 +26,7 @@ export const StyledSettingsButton = styled.button<{ rotation: number }>`
|
|||||||
return css`
|
return css`
|
||||||
right: auto;
|
right: auto;
|
||||||
top: 1vmax;
|
top: 1vmax;
|
||||||
left: 12vmin;
|
left: 27%;
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
|
|||||||
@@ -187,8 +187,8 @@ export const LoseGameButton = styled.button<{ rotation: Rotation }>`
|
|||||||
border: none;
|
border: none;
|
||||||
outline: none;
|
outline: none;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
top: 12vmin;
|
top: 25%;
|
||||||
right: 6vmax;
|
right: 15%;
|
||||||
background-color: #43434380;
|
background-color: #43434380;
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
-webkit-touch-callout: none;
|
-webkit-touch-callout: none;
|
||||||
@@ -202,15 +202,15 @@ export const LoseGameButton = styled.button<{ rotation: Rotation }>`
|
|||||||
if (props.rotation === Rotation.SideFlipped) {
|
if (props.rotation === Rotation.SideFlipped) {
|
||||||
return css`
|
return css`
|
||||||
right: auto;
|
right: auto;
|
||||||
top: 6vmax;
|
top: 15%;
|
||||||
left: 12vmin;
|
left: 27%;
|
||||||
rotate: ${props.rotation}deg;
|
rotate: ${props.rotation}deg;
|
||||||
`;
|
`;
|
||||||
} else if (props.rotation === Rotation.Side) {
|
} else if (props.rotation === Rotation.Side) {
|
||||||
return css`
|
return css`
|
||||||
right: auto;
|
right: auto;
|
||||||
top: 6vmax;
|
top: 15%;
|
||||||
left: 12vmin;
|
left: 27%;
|
||||||
rotate: ${props.rotation - 180}deg;
|
rotate: ${props.rotation - 180}deg;
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -34,8 +34,9 @@ const CloseButton = styled.div<{
|
|||||||
rotation: Rotation;
|
rotation: Rotation;
|
||||||
}>`
|
}>`
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 5%;
|
top: 15%;
|
||||||
right: 5%;
|
right: 5%;
|
||||||
|
z-index: 9999;
|
||||||
border: none;
|
border: none;
|
||||||
outline: none;
|
outline: none;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
@@ -77,6 +78,7 @@ const PlayerMenu = ({
|
|||||||
resetCurrentGame,
|
resetCurrentGame,
|
||||||
}: PlayerMenuProps) => {
|
}: PlayerMenuProps) => {
|
||||||
const handleOnClick = () => {
|
const handleOnClick = () => {
|
||||||
|
console.log('hej');
|
||||||
setShowPlayerMenu(false);
|
setShowPlayerMenu(false);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user