This commit is contained in:
Tom Moor
2023-04-30 18:10:43 -04:00
parent 94202920f8
commit 7ec4e20546

View File

@@ -69,7 +69,7 @@ function Right({ children, border, className }: Props) {
const style = React.useMemo(
() =>
isMobile
? { width: "80vw" }
? { width: "80%" }
: {
width: `${ui.sidebarRightWidth}px`,
},
@@ -112,10 +112,9 @@ function Right({ children, border, className }: Props) {
}
const Position = styled(Flex)`
position: absolute;
position: fixed;
top: 0;
bottom: 0;
left: 0;
`;
const Sidebar = styled(m.div)<{
@@ -124,16 +123,17 @@ const Sidebar = styled(m.div)<{
display: flex;
flex-shrink: 0;
background: ${s("background")};
max-width: 80vw;
max-width: 80%;
border-left: 1px solid ${s("divider")};
transition: border-left 100ms ease-in-out;
z-index: ${depths.sidebar};
z-index: 1;
${breakpoint("mobile", "tablet")`
position: absolute;
top: 0;
right: 0;
bottom: 0;
z-index: ${depths.sidebar};
`}
${breakpoint("tablet")`