-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wip: more incremental titlebar refactoring
working in 30-60 minute increments in the early AM / late PM. Nearly done, then a bunch of clean-up
- Loading branch information
Showing
21 changed files
with
241 additions
and
310 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,20 @@ | ||
import React, { PropsWithChildren } from "react"; | ||
import { Pane } from "evergreen-ui"; | ||
import { NavLink, useLocation } from "react-router-dom"; | ||
import "./styles.css"; | ||
import { cn } from "@udecode/cn"; | ||
|
||
interface Props2 extends PropsWithChildren {} | ||
|
||
export default function Titlebar({ children }: Props2) { | ||
const location = useLocation(); | ||
interface Props extends PropsWithChildren { | ||
className?: string; | ||
} | ||
|
||
export default function Titlebar({ children, className }: Props) { | ||
return ( | ||
<div className="TitleBar-macos"> | ||
<div | ||
style={{ "-webkit-app-region": "drag" } as React.CSSProperties} | ||
className={cn( | ||
"bg-secondary border-b border-accent text-accent-foreground border-accent flex justify-between items-center py-3 px-2.5 pl-20 fixed w-full h-12 z-10", | ||
className, | ||
)} | ||
> | ||
{children} | ||
{/* <Pane marginRight={25}> | ||
<span className="mono" style={{ color: "#6E62B6" }}> | ||
chronicles | ||
</span> | ||
</Pane> | ||
<Pane flexGrow={1} marginRight={24}> | ||
</Pane> */} | ||
</div> | ||
); | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.