Skip to content

Commit 2a1172b

Browse files
committed
全体のUIをflexの形で調整
1 parent a0d78b9 commit 2a1172b

File tree

6 files changed

+6
-16
lines changed

6 files changed

+6
-16
lines changed

web/app/chat/layout.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@ export default function ChatPageLayout({
1010
return (
1111
<NavigateByAuthState type="toLoginForUnauthenticated">
1212
<Header title="チャット/Chat" />
13-
<div className="absolute top-14 right-0 bottom-14 left-0 overflow-y-auto sm:top-16">
14-
{children}
15-
</div>
13+
<div className="grow overflow-y-auto">{children}</div>
1614
<BottomBar activeTab="3_chat" />
1715
</NavigateByAuthState>
1816
);

web/app/friends/layout.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@ export default function FriendsPageLayout({
1010
return (
1111
<NavigateByAuthState type="toLoginForUnauthenticated">
1212
<Header title="フレンド/Friends" />
13-
<div className="absolute top-14 right-0 bottom-14 left-0 overflow-y-auto sm:top-16">
14-
{children}
15-
</div>
13+
<div className="grow overflow-y-auto">{children}</div>
1614
<BottomBar activeTab="1_friends" />
1715
</NavigateByAuthState>
1816
);

web/app/home/layout.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@ export default function HomePageLayout({
1010
return (
1111
<NavigateByAuthState type="toLoginForUnauthenticated">
1212
<Header title="ホーム/Home" />
13-
<div className="relative top-14 right-0 bottom-14 left-0 overflow-y-auto sm:top-16">
14-
{children}
15-
</div>
13+
<div className="grow overflow-y-auto">{children}</div>
1614
<BottomBar activeTab="0_home" />
1715
</NavigateByAuthState>
1816
);

web/app/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export default function RootLayout({
5050
<AlertProvider>
5151
<ModalProvider>
5252
<BanLandscape />
53-
{children}
53+
<div className="flex h-screen flex-col">{children}</div>
5454
</ModalProvider>
5555
</AlertProvider>
5656
</AuthProvider>

web/app/search/layout.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@ export default function HomePageLayout({
99
return (
1010
<>
1111
<Header title="検索/Search" />
12-
<div className="absolute top-14 right-0 bottom-14 left-0 overflow-y-auto sm:top-16">
13-
{children}
14-
</div>
12+
<div className="grow overflow-y-auto">{children}</div>
1513
<BottomBar activeTab="2_search" />
1614
</>
1715
);

web/app/settings/layout.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@ export default function SettingsPageLayout({
99
return (
1010
<>
1111
<Header title="設定/Settings" />
12-
<div className="absolute top-14 right-0 bottom-14 left-0 overflow-y-auto sm:top-16">
13-
{children}
14-
</div>
12+
<div className="grow overflow-y-auto">{children}</div>
1513
<BottomBar activeTab="4_settings" />
1614
</>
1715
);

0 commit comments

Comments
 (0)