X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/b4ed0cfb0fc7a1588a90e6a778d9a4c00ee7a84d..4a055bfc98a5fc05cc311e2de1ab2213eec5497e:/src/views-components/main-app-bar/help-menu.tsx diff --git a/src/views-components/main-app-bar/help-menu.tsx b/src/views-components/main-app-bar/help-menu.tsx index 8128b7f4..26604228 100644 --- a/src/views-components/main-app-bar/help-menu.tsx +++ b/src/views-components/main-app-bar/help-menu.tsx @@ -3,7 +3,7 @@ // SPDX-License-Identifier: AGPL-3.0 import * as React from "react"; -import { MenuItem, Typography } from "@material-ui/core"; +import { MenuItem, Typography, ListSubheader } from "@material-ui/core"; import { DropdownMenu } from "~/components/dropdown-menu/dropdown-menu"; import { ImportContactsIcon, HelpIcon } from "~/components/icon/icon"; import { ArvadosTheme } from '~/common/custom-theme'; @@ -14,20 +14,23 @@ type CssRules = 'link' | 'icon' | 'title' | 'linkTitle'; const styles: StyleRulesCallback = (theme: ArvadosTheme) => ({ link: { textDecoration: 'none', - color: 'inherit' + color: 'inherit', + width: '100%', + display: 'flex' }, icon: { width: '16px', height: '16px' }, title: { - marginLeft: theme.spacing.unit * 2, paddingBottom: theme.spacing.unit * 0.5, + paddingLeft: theme.spacing.unit * 2, + paddingTop: theme.spacing.unit * 0.5, outline: 'none', }, linkTitle: { marginLeft: theme.spacing.unit - } + }, }); const links = [ @@ -55,15 +58,16 @@ export const HelpMenu = withStyles(styles)( icon={} id="help-menu" title="Help"> - Help + Help { links.map(link => - - + + {link.title} - - ) + + + ) } );