Skip to content

Commit

Permalink
The app name in the mobile menu is now EnrichmentMap:RNA-Seq -- #298
Browse files Browse the repository at this point in the history
  • Loading branch information
chrtannus committed Jun 19, 2024
1 parent 8d9a58e commit 1d9fd5c
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions src/client/components/home/mobile-menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import PropTypes from 'prop-types';

import { makeStyles } from '@material-ui/core/styles';

import { Toolbar, Drawer, MenuItem } from '@material-ui/core';
import { Toolbar, Divider, Drawer, MenuItem } from '@material-ui/core';
import { Button, Typography } from '@material-ui/core';

import KeyboardArrowUpIcon from '@material-ui/icons/KeyboardArrowUp';
Expand Down Expand Up @@ -39,6 +39,9 @@ const useStyles = makeStyles((theme) => ({
flexGrow: 1,
[theme.breakpoints.down('xs')]: {
fontSize: '1.25em',
textOverflow: 'ellipsis',
overflow: 'hidden',
textWrap: 'nowrap',
},
},
button: {
Expand All @@ -52,6 +55,15 @@ const useStyles = makeStyles((theme) => ({
paddingRight: theme.spacing(1.25),
borderRadius: '8px',
},
divider: {
marginLeft: theme.spacing(1),
marginRight: theme.spacing(1),
width: 0,
[theme.breakpoints.down('xs')]: {
marginLeft: theme.spacing(0.5),
marginRight: theme.spacing(0.5),
},
},
}));

export function MobileMenu({ menuDef, open, onClose }) {
Expand All @@ -74,7 +86,8 @@ export function MobileMenu({ menuDef, open, onClose }) {
>
<Toolbar variant="regular" className={classes.toolbar} disableGutters>
<AppLogoIcon className={classes.logo} />
<Typography variant="inherit" className={classes.title}>EnrichmentMap</Typography>
<Typography variant="inherit" className={classes.title}>EnrichmentMap:RNA-Seq</Typography>
<Divider orientation="vertical" flexItem variant="middle" className={classes.divider} />
<Button className={classes.button} onClick={onClose}>
<KeyboardArrowUpIcon fontSize="large" />
</Button>
Expand Down

0 comments on commit 1d9fd5c

Please sign in to comment.