Skip to content

Commit

Permalink
Fix the dock drawer header
Browse files Browse the repository at this point in the history
Signed-off-by: Quentin Guidée <[email protected]>
  • Loading branch information
quentinguidee committed Nov 9, 2023
1 parent c71dfae commit 500e60e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
9 changes: 9 additions & 0 deletions src/components/Dock/DockDrawer.module.sass
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,14 @@
overflow: scroll
transition: all 0.15s ease-out

.header
display: flex
flex-direction: row
align-items: center
gap: 10px
padding: 20px 30px
cursor: pointer

.apps
display: grid
grid-template-columns: repeat(3, 1fr)
Expand Down Expand Up @@ -73,6 +81,7 @@
align-items: center
gap: 6px
font-size: 17px
line-height: 1 !important

& > :first-child
margin-bottom: -2px
Expand Down
12 changes: 7 additions & 5 deletions src/components/Dock/DockDrawer.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import styles from "./DockDrawer.module.sass";
import classNames from "classnames";
import { Caption, Title } from "../Text/Text";
import { Caption } from "../Text/Text";
import { Link } from "react-router-dom";
import { Vertical } from "../Layouts/Layouts";
import LogoIcon from "../Logo/LogoIcon";
import { useApps } from "../../hooks/useApps";
import Header from "../Header/Header";
import { MaterialIcon } from "@vertex-center/components";
import { Logo, MaterialIcon, Title } from "@vertex-center/components";

type AppProps = {
to: string;
Expand All @@ -23,7 +22,7 @@ function DrawerApp(props: AppProps) {
<Link to={to} className={styles.app} onClick={onClick}>
<MaterialIcon icon={icon} className={styles.appIcon} />
<Vertical gap={8}>
<Title className={styles.appName}>
<Title variant="h4" className={styles.appName}>
<LogoIcon />
{name}
</Title>
Expand All @@ -49,7 +48,10 @@ export default function DockDrawer(props: Props) {
[styles.drawerOpen]: show,
})}
>
<Header title="Vertex" onClick={onClose} />
<div className={styles.header} onClick={onClose}>
<Logo />
<Title variant="h3">Vertex</Title>
</div>
<div className={styles.apps}>
{[...(apps ?? [])]
?.filter((app) => app.category !== "devtools")
Expand Down

0 comments on commit 500e60e

Please sign in to comment.