Skip to content

Commit

Permalink
fix: ensure MenuSectionHeader is dense when in the HoverMenuBar
Browse files Browse the repository at this point in the history
  • Loading branch information
HendrikThePendric committed Jul 3, 2023
1 parent 70833ac commit 1cec12e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/components/DownloadMenu/DownloadMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,21 @@ const DownloadMenu = ({ download, hoverable }) => {

return (
<MenuComponent>
<MenuSectionHeader label={i18n.t('HTML')} hideDivider />
<MenuSectionHeader
label={i18n.t('HTML')}
hideDivider
dense={hoverable}
/>
<MenuItemComponent
label={i18n.t('HTML+CSS (.html+css)')}
onClick={() =>
download(DOWNLOAD_TYPE_TABLE, FILE_FORMAT_HTML_CSS)
}
/>
<MenuSectionHeader label={i18n.t('Plain data source')} />
<MenuSectionHeader
label={i18n.t('Plain data source')}
dense={hoverable}
/>
<PlainDataSourceSubMenu
hoverable={hoverable}
download={download}
Expand Down
1 change: 1 addition & 0 deletions src/components/DownloadMenu/PlainDataSourceSubMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export const PlainDataSourceSubMenu = ({
<MenuSectionHeader
label={i18n.t('Metadata ID scheme')}
hideDivider
dense={hoverable}
/>
<MenuItemComponent
label={i18n.t('ID')}
Expand Down

0 comments on commit 1cec12e

Please sign in to comment.