Skip to content

Commit 8a3f4be

Browse files
nonuwa-ossiamonuwa
andauthored
update HubLayout component to center main content area with max width (#814)
* update HubLayout component to center main content area with max width * fix: adjust padding in Sidebar and Dashboard * chore: resolve feedback --------- Co-authored-by: nonuwa-oss <[email protected]> Co-authored-by: iamonuwa <[email protected]>
1 parent 062c190 commit 8a3f4be

File tree

4 files changed

+8
-3
lines changed

4 files changed

+8
-3
lines changed

.changeset/nasty-hairs-knock.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'hub': patch
3+
---
4+
5+
set a max layout width for hub layout

apps/hub/src/app/_components/hub-layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export function HubLayout({ children }: HubLayoutProps) {
2020

2121
{/* Main Content Area */}
2222
<div className="relative w-full overflow-hidden rounded-20 bg-white-100">
23-
<div className="flex h-[calc(100vh-64px-123px)] w-full flex-row overflow-hidden lg:h-[calc(100vh-64px-50px)]">
23+
<div className="mx-auto flex h-[calc(100vh-64px-123px)] w-full max-w-[1504px] flex-row overflow-hidden lg:h-[calc(100vh-64px-50px)]">
2424
{/* Sidebar */}
2525
<Sidebar isOpen={sidebarOpen} onClose={() => setSidebarOpen(false)} />
2626

apps/hub/src/app/_components/sidebar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ const Sidebar = (props: Props) => {
104104
>
105105
<div className="flex h-full flex-col overflow-auto py-8">
106106
{/* Main Navigation */}
107-
<nav className="flex-1 px-4">
107+
<nav className="flex-1 px-6">
108108
<ul className="space-y-1">
109109
{NAV_LINKS.map(item => {
110110
return <LinkItem key={item.id} {...item} />

apps/hub/src/app/dashboard/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const REWARDS = ['karma', 'linea', 'snt']
1515
export default function DashboardPage() {
1616
return (
1717
<HubLayout>
18-
<div className="flex flex-col p-8">
18+
<div className="flex flex-col px-6 py-8">
1919
{/* Hero Section */}
2020
<Hero />
2121

0 commit comments

Comments
 (0)