diff --git a/webapp/src/components/sidebar/sidebar.tsx b/webapp/src/components/sidebar/sidebar.tsx index c311bcf69..160993840 100644 --- a/webapp/src/components/sidebar/sidebar.tsx +++ b/webapp/src/components/sidebar/sidebar.tsx @@ -68,7 +68,10 @@ const Sidebar = React.memo((props: Props) => {
- +
diff --git a/webapp/src/components/sidebar/sidebarUserMenu.scss b/webapp/src/components/sidebar/sidebarUserMenu.scss index dd2645234..d065b7619 100644 --- a/webapp/src/components/sidebar/sidebarUserMenu.scss +++ b/webapp/src/components/sidebar/sidebarUserMenu.scss @@ -10,8 +10,22 @@ width: auto; } + .versionFrame { + display: flex; + flex-direction: column; + align-items: center; + } + .version { font-size: 11px; + line-height: 11px; + font-weight: 500; + color: rgba(var(--sidebar-fg), 0.8); + } + + .versionBadge { + font-size: 10px; + line-height: 11px; font-weight: 500; color: rgba(var(--sidebar-fg), 0.8); } diff --git a/webapp/src/components/sidebar/sidebarUserMenu.tsx b/webapp/src/components/sidebar/sidebarUserMenu.tsx index 119b9e6ba..d5e5fe2b3 100644 --- a/webapp/src/components/sidebar/sidebarUserMenu.tsx +++ b/webapp/src/components/sidebar/sidebarUserMenu.tsx @@ -20,12 +20,13 @@ import './sidebarUserMenu.scss' type Props = { whiteLogo: boolean + showVersionBadge: boolean } const SidebarUserMenu = React.memo((props: Props) => { const history = useHistory() const [showRegistrationLinkDialog, setShowRegistrationLinkDialog] = useState(false) - const {whiteLogo} = props + const {whiteLogo, showVersionBadge} = props const intl = useIntl() return (
@@ -34,8 +35,13 @@ const SidebarUserMenu = React.memo((props: Props) => {
{whiteLogo ? : }
-
- {`v${Constants.versionString}`} +
+
+ {`v${Constants.versionString}`} +
+
+  {showVersionBadge ? 'BETA' : ''}  +