File tree 4 files changed +48
-46
lines changed
4 files changed +48
-46
lines changed Original file line number Diff line number Diff line change @@ -3,33 +3,38 @@ import type { Metadata, Viewport } from "next";
3
3
import Script from "next/script" ;
4
4
5
5
export const metadata : Metadata = {
6
- title : "Akane 管理画面" ,
7
- description : "Akane 管理画面です。操作には注意してください。" ,
6
+ title : "Akane 管理画面" ,
7
+ description : "Akane 管理画面です。操作には注意してください。" ,
8
8
} ;
9
9
10
10
export const viewport : Viewport = {
11
- width : "device-width" ,
12
- initialScale : 1.0 ,
13
- maximumScale : 1.0 ,
11
+ width : "device-width" ,
12
+ initialScale : 1.0 ,
13
+ maximumScale : 1.0 ,
14
+ } ;
15
+
16
+ export const scrollableStyle = {
17
+ overflow : "scroll" ,
18
+ height : "100%" ,
14
19
} ;
15
20
16
21
export default function AdminRootLayout ( {
17
- children,
22
+ children,
18
23
} : Readonly < {
19
- children : React . ReactNode ;
24
+ children : React . ReactNode ;
20
25
} > ) {
21
- return (
22
- < html lang = "ja" suppressHydrationWarning >
23
- < body >
24
- < AdminPageLayout > { children } </ AdminPageLayout >
25
- </ body >
26
+ return (
27
+ < html lang = "ja" suppressHydrationWarning >
28
+ < body style = { scrollableStyle } suppressHydrationWarning >
29
+ < AdminPageLayout > { children } </ AdminPageLayout >
30
+ </ body >
26
31
27
- < Script
28
- src = "https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"
29
- integrity = "sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz"
30
- crossOrigin = "anonymous"
31
- strategy = "afterInteractive"
32
- />
33
- </ html >
34
- ) ;
32
+ < Script
33
+ src = "https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"
34
+ integrity = "sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz"
35
+ crossOrigin = "anonymous"
36
+ strategy = "afterInteractive"
37
+ />
38
+ </ html >
39
+ ) ;
35
40
}
Original file line number Diff line number Diff line change 1
1
import Link from "next/link" ;
2
2
3
3
export default function AdminIndexPage ( ) {
4
- return (
5
- < div className = " mt-3" >
6
- < section >
7
- < h2 className = "fw-bold fs-4" > ストーリー関連</ h2 >
8
- < ul className = "list-group" >
9
- < li className = "list-group-item" >
10
- < Link href = "/admin/story" > ストーリー一覧</ Link >
11
- </ li >
12
- </ ul >
13
- </ section >
14
- </ div >
15
- ) ;
4
+ return (
5
+ < div className = " mt-3" >
6
+ < section >
7
+ < h2 className = "fw-bold fs-4" > ストーリー関連</ h2 >
8
+ < ul className = "list-group" >
9
+ < li className = "list-group-item" >
10
+ < Link href = "/admin/story" > ストーリー一覧</ Link >
11
+ </ li >
12
+ </ ul >
13
+ </ section >
14
+ </ div >
15
+ ) ;
16
16
}
Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ import "./globals.css";
3
3
import { Provider } from "@/components/ui/provider" ;
4
4
import { WithApolloProvider } from "@/graphql/provider" ;
5
5
6
-
7
6
export const metadata : Metadata = {
8
7
title : "Create Next App" ,
9
8
description : "Generated by create next app" ,
@@ -16,11 +15,9 @@ export default function RootLayout({
16
15
} > ) {
17
16
return (
18
17
< html lang = "ja" suppressHydrationWarning >
19
- < body >
18
+ < body suppressHydrationWarning >
20
19
< WithApolloProvider >
21
- < Provider >
22
- { children }
23
- </ Provider >
20
+ < Provider > { children } </ Provider >
24
21
</ WithApolloProvider >
25
22
</ body >
26
23
</ html >
Original file line number Diff line number Diff line change @@ -3,16 +3,16 @@ import type React from "react";
3
3
import { AdminNavbar } from "./navbar" ;
4
4
5
5
export const AdminPageLayout = ( { children } : React . PropsWithChildren ) => {
6
- return (
7
- < div >
8
- < AdminNavbar />
9
- < main className = "container" > { children } </ main >
10
- </ div >
11
- ) ;
6
+ return (
7
+ < div >
8
+ < AdminNavbar />
9
+ < main className = "container" > { children } </ main >
10
+ </ div >
11
+ ) ;
12
12
} ;
13
13
14
14
export const AdminPageLayoutDecorator = ( Story : React . FC ) => (
15
- < AdminPageLayout >
16
- < Story />
17
- </ AdminPageLayout >
15
+ < AdminPageLayout >
16
+ < Story />
17
+ </ AdminPageLayout >
18
18
) ;
You can’t perform that action at this time.
0 commit comments