Skip to content

Commit 2e4e3a7

Browse files
ximingclaude
andcommitted
fix(web): center notifications page layout like gallery/settings
Use justify-center pattern with max-w container instead of mx-auto Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent 736ed3f commit 2e4e3a7

1 file changed

Lines changed: 6 additions & 8 deletions

File tree

apps/web/src/pages/notifications/index.tsx

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,10 @@ export const NotificationPage = bindServices(() => {
8686

8787
return (
8888
<Layout>
89-
<div className="flex-1 flex flex-col h-full overflow-hidden bg-gray-50 dark:bg-dark-900">
90-
{/* Header */}
91-
<div className="flex-shrink-0 bg-white dark:bg-dark-800 border-b border-gray-200 dark:border-dark-700">
92-
<div className="max-w-[720px] mx-auto px-6 py-4">
89+
<div className="flex-1 overflow-hidden flex justify-center w-full">
90+
<div className="w-full max-w-[720px] h-full flex flex-col">
91+
{/* Header */}
92+
<div className="flex-shrink-0 bg-white dark:bg-dark-800 border-b border-gray-200 dark:border-dark-700 px-6 py-4">
9393
<div className="flex items-center justify-between">
9494
<div className="flex items-center gap-3">
9595
<button
@@ -129,11 +129,9 @@ export const NotificationPage = bindServices(() => {
129129
<NotificationTabs activeTab={activeTab} onTabChange={setActiveTab} />
130130
</div>
131131
</div>
132-
</div>
133132

134-
{/* Content */}
135-
<div className="flex-1 overflow-y-auto">
136-
<div className="max-w-[720px] mx-auto px-6 py-6">
133+
{/* Content */}
134+
<div className="flex-1 overflow-y-auto bg-gray-50 dark:bg-dark-900 px-6 py-6">
137135
{notificationService.loading ? (
138136
<div className="flex items-center justify-center py-12">
139137
<Loader2 className="w-8 h-8 text-primary-600 animate-spin" />

0 commit comments

Comments
 (0)