mirror of
https://github.com/apache/superset.git
synced 2026-05-12 19:35:17 +00:00
fix: move watermark to about section (#16097)
(cherry picked from commit b80f018691)
This commit is contained in:
@@ -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 {
|
||||
@@ -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"
|
||||
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user