Skip to content

Commit

Permalink
fix a few logical/typo mistakes in sidebar stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Southclaws committed Jan 1, 2024
1 parent 140b49e commit c6a80d7
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions web/src/components/graphics/Sidebar/Sidebar.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
}

.open {
transform: translateX(-480px);
transform: translateX(0px);
}

.closed {
transform: translateX(0px);
transform: translateX(-480px);
}
4 changes: 2 additions & 2 deletions web/src/components/site/Navigation/Navigation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const isNavpillShown = (path: string | null) =>

export function Navigation({ children }: PropsWithChildren) {
const pathname = usePathname();
const [showLeftBar, setShowLeftBar] = useState(true);
const [showLeftBar, setShowLeftBar] = useState(false);

return (
<>
Expand Down Expand Up @@ -50,7 +50,7 @@ export function Navigation({ children }: PropsWithChildren) {
md: "block",
}}
w="full"
data-leftbar-hidden={showLeftBar}
data-leftbar-shown={showLeftBar}
>
<Box id="navigation__scroll" className={styles["navgrid"]}>
<Box className={styles["main"]}>
Expand Down
2 changes: 1 addition & 1 deletion web/src/components/site/Navigation/Top/Top.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export function Top({ onToggleSidebar, sidebarState }: Props) {
kind="ghost"
onClick={() => onToggleSidebar(!sidebarState)}
>
<Sidebar open={sidebarState} />
<Sidebar open={sidebarState} /> {sidebarState ? "TRUE" : "FALSE"}
</Button>
<ComposeAction>new</ComposeAction>
</HStack>
Expand Down
4 changes: 2 additions & 2 deletions web/src/components/site/Navigation/navigation.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
animation: fadeIn 0.2s ease-in-out;
}

.desktop-nav-container[data-leftbar-hidden="true"] .leftbar {
.desktop-nav-container[data-leftbar-shown="false"] .leftbar {
animation: fadeOut 0.2s ease-in-out;
opacity: 0;
pointer-events: none;
Expand Down Expand Up @@ -142,7 +142,7 @@
}

@media screen and (max-width: 1280px) {
.desktop-nav-container[data-leftbar-hidden="true"] .main {
.desktop-nav-container[data-leftbar-shown="true"] .main {
grid-column: leftbar / main;
}
}

2 comments on commit c6a80d7

@vercel
Copy link

@vercel vercel bot commented on c6a80d7 Jan 1, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on c6a80d7 Jan 1, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.