Skip to content

Commit

Permalink
fix: use sticky appbar
Browse files Browse the repository at this point in the history
  • Loading branch information
erichartline committed Jul 21, 2021
1 parent 0d84e21 commit d232979
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 13 deletions.
4 changes: 1 addition & 3 deletions dist/dicty-components-page-editor.cjs.development.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/dicty-components-page-editor.cjs.development.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/dicty-components-page-editor.cjs.production.min.js

Large diffs are not rendered by default.

Large diffs are not rendered by default.

4 changes: 1 addition & 3 deletions dist/dicty-components-page-editor.esm.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/dicty-components-page-editor.esm.js.map

Large diffs are not rendered by default.

4 changes: 1 addition & 3 deletions src/components/Toolbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,6 @@ const useStyles = makeStyles((theme: Theme) => ({
marginBottom: theme.spacing(1),
},
toolbar: {
position: "sticky",
top: 0,
cursor: "default",
},
divider: {
Expand Down Expand Up @@ -98,7 +96,7 @@ const EditorToolbar = () => {
const classes = useStyles()

return (
<AppBar color="default" position="static" className={classes.container}>
<AppBar color="default" position="sticky" className={classes.container}>
<Toolbar disableGutters variant="dense" className={classes.toolbar}>
<Grid container>
<Grid item xs={12}>
Expand Down

0 comments on commit d232979

Please sign in to comment.