Fix styling issues

This commit is contained in:
Valtteri Karesto
2022-03-22 17:36:10 +02:00
parent b301a860bf
commit bbd1d162f0
2 changed files with 6 additions and 8 deletions

View File

@@ -18,7 +18,7 @@ const StyledOverlay = styled(DialogPrimitive.Overlay, {
zIndex: 9999,
backgroundColor: blackA.blackA9,
position: "fixed",
// inset: 0,
inset: 0,
top: 0,
left: 0,
right: 0,
@@ -51,7 +51,7 @@ const StyledContent = styled(DialogPrimitive.Content, {
},
"&:focus": { outline: "none" },
".dark &": {
backgroundColor: "$mauve3",
backgroundColor: "$mauve5",
boxShadow:
"0px 10px 38px 0px rgba(0, 0, 0, 0.85), 0px 10px 20px 0px rgba(0, 0, 0, 0.6)",
},
@@ -59,11 +59,9 @@ const StyledContent = styled(DialogPrimitive.Content, {
const Content: React.FC<{ css?: Stiches.CSS }> = ({ css, children }) => {
return (
<>
<StyledOverlay>
<StyledContent>{children}</StyledContent>
</StyledOverlay>
</>
<StyledOverlay>
<StyledContent css={css}>{children}</StyledContent>
</StyledOverlay>
);
};

View File

@@ -128,7 +128,7 @@ const Navigation = () => {
</DialogTrigger>
<DialogContent
css={{
maxWidth: "100%",
maxWidth: "1080px",
width: "80vw",
height: "80%",
backgroundColor: "$mauve1 !important",