aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLibravatar Renard 2019-09-14 14:38:11 -0300
committerLibravatar Renard 2019-09-14 14:38:11 -0300
commit3784d4db8703db2a1c61c3ad37b9711d5fc5c553 (patch)
treeb88494136bfc363c0a8f2c377aa6e88dd9d2e6b0 /src
parent0c39566d07c869111eeb0092381561d3dbdb0fd0 (diff)
downloadbai-client-3784d4db8703db2a1c61c3ad37b9711d5fc5c553.tar.gz
bai-client-3784d4db8703db2a1c61c3ad37b9711d5fc5c553.tar.xz
bai-client-3784d4db8703db2a1c61c3ad37b9711d5fc5c553.zip
Fixed menu
Diffstat (limited to 'src')
-rw-r--r--src/App.css4
-rw-r--r--src/App.js50
2 files changed, 31 insertions, 23 deletions
diff --git a/src/App.css b/src/App.css
index cd12c8b..ab194ce 100644
--- a/src/App.css
+++ b/src/App.css
@@ -1,3 +1,7 @@
+.main.container {
+ margin-top: 4em;
+}
+
.postMessage {
word-break: break-word;
overflow-wrap: anywhere;
diff --git a/src/App.js b/src/App.js
index 0579156..551fed9 100644
--- a/src/App.js
+++ b/src/App.js
@@ -45,30 +45,34 @@ class App extends Component {
const { boardList } = this.state;
//const pathList = boardList.map(board => "/" + board.dir)
return (
- <Container>
- <Menu inverted>
- <Menu.Item header>B.a.I</Menu.Item>
- <Menu.Item as={Link} to="/"><Icon name='home' /> Home</Menu.Item>
- <Dropdown text='BBS' className='link item'>
- <Dropdown.Menu>
- {boardList.map(board => board.board_type === 1 ? <Dropdown.Item key={board.dir} as={Link} to={`/board/${board.dir}`}>/{board.dir}/ - {board.name}</Dropdown.Item> : null)}
- </Dropdown.Menu>
- </Dropdown>
- <Dropdown text='Imageboard' className='link item'>
- <Dropdown.Menu>
- {boardList.map(board => board.board_type === 0 ? <Dropdown.Item key={board.dir} as={Link} to={`/board/${board.dir}`}>/{board.dir}/ - {board.name}</Dropdown.Item> : null)}
- </Dropdown.Menu>
- </Dropdown>
+ <React.Fragment>
+ <Menu inverted fixed="top">
+ <Container>
+ <Menu.Item header>B.a.I</Menu.Item>
+ <Menu.Item as={Link} to="/"><Icon name='home' /> Home</Menu.Item>
+ <Dropdown text='BBS' className='link item'>
+ <Dropdown.Menu>
+ {boardList.map(board => board.board_type === 1 ? <Dropdown.Item key={board.dir} as={Link} to={`/board/${board.dir}`}>/{board.dir}/ - {board.name}</Dropdown.Item> : null)}
+ </Dropdown.Menu>
+ </Dropdown>
+ <Dropdown text='Imageboard' className='link item'>
+ <Dropdown.Menu>
+ {boardList.map(board => board.board_type === 0 ? <Dropdown.Item key={board.dir} as={Link} to={`/board/${board.dir}`}>/{board.dir}/ - {board.name}</Dropdown.Item> : null)}
+ </Dropdown.Menu>
+ </Dropdown>
+ </Container>
</Menu>
- <Router>
- <Home boardList={this.state.boardList} path="/" />
- <BBSThread path="/:dir/read/:id">
- <BBSThread path=":active" />
- </BBSThread>
- <Board path="/board/:dir" />
- <NotFound default />
- </Router>
- </Container >
+ <Container className="main">
+ <Router>
+ <Home boardList={this.state.boardList} path="/" />
+ <BBSThread path="/:dir/read/:id">
+ <BBSThread path=":active" />
+ </BBSThread>
+ <Board path="/board/:dir" />
+ <NotFound default />
+ </Router>
+ </Container >
+ </React.Fragment>
);
}
}