Skip to content

Commit

Permalink
fix: move watermark to about section (apache#16097)
Browse files Browse the repository at this point in the history
  • Loading branch information
nytai authored Aug 6, 2021
1 parent 6edc1ee commit b80f018
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions superset-frontend/src/components/Menu/MenuRight.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,15 +69,6 @@ const StyledAnchor = styled.a`
padding-left: ${({ theme }) => theme.gridUnit}px;
`;

const WaterMark = styled.span`
font-size: 13px;
color: #b0b4c3;
margin: 0 ${({ theme }) => theme.gridUnit * 4}px;
@media (max-width: 1070px) {
display: none;
}
`;

const { SubMenu } = Menu;

interface RightMenuProps {
Expand All @@ -95,9 +86,6 @@ const RightMenu = ({
}: RightMenuProps) => (
<StyledDiv align={align}>
<Menu mode="horizontal">
{navbarRight.show_watermark && (
<WaterMark>{t('Powered by Apache Superset')}</WaterMark>
)}
{!navbarRight.user_is_anonymous && (
<SubMenu
data-test="new-dropdown"
Expand Down Expand Up @@ -160,6 +148,11 @@ const RightMenu = ({
<Menu.Divider key="version-info-divider" />,
<Menu.ItemGroup key="about-section" title={t('About')}>
<div className="about-section">
{navbarRight.show_watermark && (
<div css={versionInfoStyles}>
{t('Powered by Apache Superset')}
</div>
)}
{navbarRight.version_string && (
<div css={versionInfoStyles}>
Version: {navbarRight.version_string}
Expand Down

0 comments on commit b80f018

Please sign in to comment.