Skip to content

Commit db542ca

Browse files
committed
Use navHeight constant
1 parent f134141 commit db542ca

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

site/src/components/Navbar/NavbarView.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { fade, makeStyles } from "@material-ui/core/styles"
44
import React from "react"
55
import { NavLink } from "react-router-dom"
66
import { UserResponse } from "../../api/types"
7+
import { navHeight } from "../../theme/constants"
78
import { Logo } from "../Icons"
89
import { AdminDropdown } from "./AdminDropdown"
910
import { UserDropdown } from "./UserDropdown"
@@ -44,7 +45,7 @@ const useStyles = makeStyles((theme) => ({
4445
flexDirection: "row",
4546
justifyContent: "center",
4647
alignItems: "center",
47-
height: 56,
48+
height: navHeight,
4849
background: theme.palette.navbar.main,
4950
marginTop: 0,
5051
transition: "margin 150ms ease",
@@ -64,7 +65,7 @@ const useStyles = makeStyles((theme) => ({
6465
logo: {
6566
alignItems: "center",
6667
display: "flex",
67-
height: 56,
68+
height: navHeight,
6869
paddingLeft: theme.spacing(4),
6970
paddingRight: theme.spacing(2),
7071
"& svg": {
@@ -83,7 +84,7 @@ const useStyles = makeStyles((theme) => ({
8384
color: "#A7A7A7",
8485
display: "flex",
8586
fontSize: 16,
86-
height: 56,
87+
height: navHeight,
8788
padding: `0 ${theme.spacing(3)}px`,
8889
textDecoration: "none",
8990
transition: "background-color 0.3s ease",

0 commit comments

Comments
 (0)