Skip to content

Commit 2f2a3e3

Browse files
authored
Merge pull request #161 from oasisprotocol/mz/mobileHeader
Improve mobile header
2 parents 1bff55c + eb31175 commit 2f2a3e3

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
name="description"
1010
content="Offchain Performance. Onchain Trust. Build trustless apps. Start quickly with templates. Manage everything from one interface."
1111
/>
12+
<meta name="theme-color" content="#09090b" />
1213
</head>
1314
<body class="dark">
1415
<div id="root"></div>

src/components/Layout/Header.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,17 +50,17 @@ export const Header: FC = () => {
5050
</Button>
5151
</div>
5252
</SheetTrigger>
53-
<SheetContent side="top" className="w-full">
54-
<SheetHeader>
53+
<SheetContent side="top" className="gap-0">
54+
<SheetHeader className="mb-4 px-3 py-2.5 border-b">
5555
<SheetTitle className="sr-only">Navigation Menu</SheetTitle>
56-
<div className="flex items-start px-3 py-2.5">
56+
<div className="flex items-start">
5757
<NavLink to="/" onClick={() => setIsOpen(false)}>
58-
<img src={Logotype} alt="ROFL App" />
58+
<img src={Logotype} alt="ROFL App" className="h-[36px]" />
5959
</NavLink>
6060
</div>
6161
</SheetHeader>
6262
<nav>
63-
<div className="flex flex-col p-2">
63+
<div className="flex flex-col px-4 pb-4 gap-2">
6464
<NavbarLink to="/dashboard" onClick={() => setIsOpen(false)}>
6565
<span className="text-foreground">Dashboard</span>
6666
</NavbarLink>

ui-library

0 commit comments

Comments
 (0)