Skip to content

Commit 59ab831

Browse files
committed
feat(project header): updated project header styles
1 parent bb28b81 commit 59ab831

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

apps/web/components/nav/nav-client.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,11 @@ export const Nav = () => {
3232
const isActive = (href: string) => pathname.startsWith(href);
3333

3434
return (
35-
<header className="sticky top-0 z-50 border-b bg-[#18181B] text-white">
35+
<header
36+
className={`border-b bg-[#18181B] text-white ${
37+
isProjectRoute ? "" : "sticky top-0 z-50"
38+
}`}
39+
>
3640
<div className="container-wrapper flex h-20 items-center justify-between">
3741
<Link className="flex w-fit items-center gap-2" href="/dashboard">
3842
<div className="flex items-center space-x-3">

apps/web/components/project/project-header.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export const ProjectHeader = ({
4646
}
4747

4848
return (
49-
<div className="flex flex-col gap-4 border-b pb-4">
49+
<div className="sticky top-0 z-40 -mx-6 -mt-8 flex flex-col gap-4 border-b bg-[#F4F4F5] px-6 pt-8 pb-4">
5050
<div className="flex items-center justify-between">
5151
<h1 className="flex items-center gap-2 text-xl">
5252
<Link href={`/projects/${projectId}`}>

0 commit comments

Comments
 (0)