From 89ab30f4e7e1af1f36930dd74601510b22d74f30 Mon Sep 17 00:00:00 2001 From: Carl Smith <5456533+CarlosNZ@users.noreply.github.com> Date: Sun, 5 Nov 2023 16:32:11 +1300 Subject: [PATCH 1/7] Tidy up User Menu --- semantic/src/site/globals/site.overrides | 35 +++++++++++++++++------- src/containers/User/UserArea.tsx | 16 ++++++++++- 2 files changed, 40 insertions(+), 11 deletions(-) diff --git a/semantic/src/site/globals/site.overrides b/semantic/src/site/globals/site.overrides index 7cebe61cb..188cb6d23 100644 --- a/semantic/src/site/globals/site.overrides +++ b/semantic/src/site/globals/site.overrides @@ -325,6 +325,9 @@ a:hover { padding-top: 8px; padding-bottom: 8px; } + @media only screen and (max-width: 860px) { + display: none; + } } #user-area-left { @@ -347,11 +350,31 @@ a:hover { } #user-menu { - width: clamp(150px, 20%, 300px); text-align: right; + .button { + margin-top: 10px; + border-radius: 20px; + background-color: @surfacesWhite; + color: @darkGrey; + min-width: 120px; + max-width: 300px; + } + .ui .dropdown { + display: flex; + } + .ui.dropdown > .text { + display: flex; + align-items: center; + flex-wrap: nowrap; + white-space: nowrap; + } + .ui.dropdown .menu { + right: 0; + left: unset; + } } -// Not currently used, but should be appplied to the Link in the menu +// Not currently used, but should be applied to the Link in the menu // bar that reflects the current page .selected-link { font-weight: bold; @@ -380,14 +403,6 @@ a:hover { max-width: 300px; } -#user-menu .button { - margin-top: 10px; - border-radius: 20px; - background-color: @surfacesWhite; - color: @darkGrey; - min-width: 120px; -} - #language-modal { display: flex; flex-direction: column; diff --git a/src/containers/User/UserArea.tsx b/src/containers/User/UserArea.tsx index 3ca6c47c6..b785afb33 100644 --- a/src/containers/User/UserArea.tsx +++ b/src/containers/User/UserArea.tsx @@ -490,7 +490,21 @@ const UserMenu: React.FC<{ user: User; templates: TemplateInList[] }> = ({ user,