mirror of
https://github.com/urbit/shrub.git
synced 2024-12-01 06:35:32 +03:00
publish: fix new notebook on mobile screen sizes
This commit is contained in:
parent
261b0f24a1
commit
898b3adeb5
@ -96,7 +96,7 @@ export function Sidebar(props: any) {
|
||||
);
|
||||
}
|
||||
|
||||
const display = props.path ? ['none', 'block'] : 'block';
|
||||
const display = props.hidden ? ['none', 'block'] : 'block';
|
||||
|
||||
return (
|
||||
<Col
|
||||
|
@ -89,7 +89,9 @@ export function Skeleton(props: SkeletonProps) {
|
||||
}, 1500);
|
||||
}, [noteId, notebook, ship, notebooks])
|
||||
|
||||
const panelDisplay = !path ? ["none", "block"] : "block";
|
||||
const hideSidebar = path || props.location.pathname.endsWith('/new')
|
||||
|
||||
const panelDisplay = !hideSidebar ? ["none", "block"] : "block";
|
||||
return (
|
||||
<Box height="100%" width="100%" px={[0, 3]} pb={[0, 3]}>
|
||||
<Box
|
||||
@ -105,6 +107,7 @@ export function Skeleton(props: SkeletonProps) {
|
||||
notebooks={props.notebooks}
|
||||
contacts={props.contacts}
|
||||
path={path}
|
||||
hidden={hideSidebar}
|
||||
invites={props.invites}
|
||||
associations={props.associations}
|
||||
api={props.api}
|
||||
|
Loading…
Reference in New Issue
Block a user