aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorludovicm67 <ludovicmuller1@gmail.com>2020-01-23 23:05:34 +0100
committerludovicm67 <ludovicmuller1@gmail.com>2020-01-23 23:05:34 +0100
commit8f6bc245038ce7197034877bf0fd5ddcb8d3e24d (patch)
tree7f34d7766b92ecbadd0624158afcd13c5dedac94
parentf716bc1db9af25af96c59f9eee9c34525f7a88f0 (diff)
downloadgit-bug-8f6bc245038ce7197034877bf0fd5ddcb8d3e24d.tar.gz
webui: fix AppBar
-rw-r--r--webui/src/App.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/webui/src/App.js b/webui/src/App.js
index 2dddb3eb..145cd90d 100644
--- a/webui/src/App.js
+++ b/webui/src/App.js
@@ -19,10 +19,12 @@ const theme = createMuiTheme({
});
const useStyles = makeStyles(theme => ({
+ offset: theme.mixins.toolbar,
appTitle: {
...theme.typography.h6,
color: 'white',
textDecoration: 'none',
+ flexGrow: 1,
},
}));
@@ -32,13 +34,14 @@ export default function App() {
return (
<ThemeProvider theme={theme}>
<CssBaseline />
- <AppBar position="static" color="primary">
+ <AppBar position="fixed" color="primary">
<Toolbar>
<Link to="/" className={classes.appTitle}>
git-bug webui
</Link>
</Toolbar>
</AppBar>
+ <div className={classes.offset} />
<Switch>
<Route path="/" exact component={ListQuery} />
<Route path="/bug/:id" exact component={BugQuery} />