Fix mobile layout

This commit is contained in:
Sacha Weatherstone
2021-05-09 20:03:44 +10:00
parent b3ea386307
commit 0d7d2cb64f
3 changed files with 16 additions and 8 deletions
+6 -1
View File
@@ -22,13 +22,18 @@ interface SidebarProps {
setLanguage: React.Dispatch<React.SetStateAction<LanguageEnum>>;
translations: languageTemplate;
myId: number;
sidebarOpen: boolean;
darkmode: boolean;
setDarkmode: React.Dispatch<React.SetStateAction<boolean>>;
}
const Sidebar = (props: SidebarProps) => {
return (
<div className="flex flex-col rounded-md md:ml-0 shadow-md border w-full max-w-sm">
<div
className={`${
props.sidebarOpen ? 'flex' : 'hidden md:flex'
} flex-col rounded-md md:ml-0 shadow-md border w-full max-w-sm`}
>
<Nodes
isReady={props.isReady}
nodes={props.nodes}