-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* replaced brand png icons with svg counterparts * comps to use svg counterpart of graphics * revert qr-logo back to png version * theme changes * revamp dialog to create link * basic revamped user page layout * refactor tool bar components for less coupling * decoupled, revamped, responsify toolbar comps * refactor and revamp url table * change app margins to a hook, and hover row fix * set a different top margin for user page header * improve contract of table cell bottom border * minor tweak in table for mobile view * add back table cells for empty table row indicator * removed filter adornment since logic is not impl * improve gracefulness of toolbar collapse * improve const var name * eslint changes
- Loading branch information
Showing
29 changed files
with
789 additions
and
641 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { useMediaQuery, useTheme } from '@material-ui/core' | ||
|
||
const useAppMargins = () => { | ||
const theme = useTheme() | ||
const xsWidth = useMediaQuery(theme.breakpoints.only('xs')) | ||
const smWidth = useMediaQuery(theme.breakpoints.only('sm')) | ||
const mdWidth = useMediaQuery(theme.breakpoints.only('md')) | ||
|
||
if (xsWidth) { | ||
return theme.spacing(4) | ||
} | ||
if (smWidth) { | ||
return theme.spacing(8) | ||
} | ||
if (mdWidth) { | ||
return theme.spacing(12) | ||
} | ||
return theme.spacing(16) | ||
} | ||
|
||
export default useAppMargins |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.