diff --git a/semantic/src/site/globals/site.overrides b/semantic/src/site/globals/site.overrides
index dbcb002b6..f5a43d03b 100644
--- a/semantic/src/site/globals/site.overrides
+++ b/semantic/src/site/globals/site.overrides
@@ -1836,6 +1836,10 @@ a:hover {
#data-view-config-panel {
padding-top: 20px;
width: 50%;
+ @media only screen and (max-width: @largestMobileScreen) {
+ width: unset;
+ max-width: 100%;
+ }
h2.ui.header {
padding: 0;
@@ -2659,6 +2663,13 @@ h6:first-child {
#user-area {
height: @mobileHeaderHeight;
padding-left: 10px;
+ .visible.menu .item {
+ // font-size: 1rem;
+ // padding: 0.8em !important;
+ .dropdown {
+ padding: 0 !important;
+ }
+ }
}
#user-area-left {
@@ -2682,15 +2693,19 @@ h6:first-child {
#menu-bar {
font-size: inherit;
+ position: absolute;
+ top: @mobileHeaderHeight;
+ left: 0px;
+ width: 100%;
background-color: inherit;
.list {
- z-index: 2000;
- position: absolute;
- top: @mobileHeaderHeight;
- left: 0px;
background-color: inherit;
- width: 95%;
- padding: 5px 30px 20px 25px;
+ z-index: 2000;
+ padding: 5px 30px 10px 25px;
+ }
+ .list .item {
+ padding-top: 0.4em;
+ padding-bottom: 0.4em;
}
.ui .dropdown {
display: flex;
@@ -2698,7 +2713,7 @@ h6:first-child {
}
.menu-divider {
- margin: 0px 0px 5px 0px !important;
+ margin: 0 !important;
}
/***********************
@@ -2718,6 +2733,7 @@ h6:first-child {
height: 3px;
background: @userAreaText;
margin: 0 0 3px;
+ transition-duration: 0.1s;
}
.hamburger:hover {
-moz-opacity: 1;
@@ -2757,11 +2773,4 @@ h6:first-child {
.hamburger.active .hamburger-patty {
display: none;
}
- #menu-bar:not(.open) {
- display: none;
-
- //.open {
- // display:block;
- //}
- }
}
diff --git a/semantic/src/site/modules/dropdown.overrides b/semantic/src/site/modules/dropdown.overrides
index d0cfebb33..90cb950d0 100644
--- a/semantic/src/site/modules/dropdown.overrides
+++ b/semantic/src/site/modules/dropdown.overrides
@@ -5,8 +5,8 @@
@media only screen and (max-width: @largestMobileScreen) {
// So that the sub menus show properly in mobile for Header menu
.ui.dropdown .menu .menu {
- top: 350% !important;
- left: 0%;
+ // top: 350% !important;
+ left: 50%;
}
// To give drop-downs a bit more vertical height in mobile
diff --git a/src/components/Admin/AdminPreferences.tsx b/src/components/Admin/AdminPreferences.tsx
index 9cb020c56..1eb887516 100644
--- a/src/components/Admin/AdminPreferences.tsx
+++ b/src/components/Admin/AdminPreferences.tsx
@@ -8,10 +8,12 @@ import useConfirmationModal from '../../utils/hooks/useConfirmationModal'
import getServerUrl from '../../utils/helpers/endpoints/endpointUrlBuilder'
import { JsonEditor } from './JsonEditor'
import Loading from '../Loading'
+import { useViewport } from '../../contexts/ViewportState'
export const AdminPreferences: React.FC = () => {
const { t, tFormat } = useLanguageProvider()
usePageTitle(t('PAGE_TITLE_PREFS'))
+ const { isMobile } = useViewport()
const showToast = useToast({ position: topLeft })
const { ConfirmModal: WarningModal, showModal: showWarningModal } = useConfirmationModal({
@@ -66,6 +68,7 @@ export const AdminPreferences: React.FC = () => {
maxWidth={650}
restrictDelete={({ level }) => level === 1}
restrictAdd={({ level }) => level === 0}
+ indent={isMobile ? 2 : 4}
/>
) : (
diff --git a/src/containers/User/UserArea.tsx b/src/containers/User/UserArea.tsx
index 782249bc0..759f9c4a2 100644
--- a/src/containers/User/UserArea.tsx
+++ b/src/containers/User/UserArea.tsx
@@ -1,5 +1,15 @@
import React, { SyntheticEvent, useEffect, useState } from 'react'
-import { Button, Container, Image, List, Dropdown, Modal, Header, Form } from 'semantic-ui-react'
+import {
+ Button,
+ Container,
+ Image,
+ List,
+ Dropdown,
+ Modal,
+ Header,
+ Form,
+ Transition,
+} from 'semantic-ui-react'
import { useUserState } from '../../contexts/UserState'
import { useLanguageProvider } from '../../contexts/Localisation'
import { attemptLoginOrg } from '../../utils/helpers/attemptLogin'
@@ -244,110 +254,115 @@ const MainMenuBar: React.FC = ({
}
return (
-
+
)
}
@@ -404,7 +419,13 @@ const OrgSelector: React.FC<{ user: User; orgs: OrganisationSimple[]; onLogin: F
if (!orgs.some(({ isSystemOrg }) => isSystemOrg))
dropdownOptions.push({
key: LOGIN_AS_NO_ORG,
- text: `> ${t('LABEL_NO_ORG_SELECT')}`,
+ text: (
+
+ {t('LABEL_NO_ORG')}
+
+ {t('LABEL_USER_ONLY')}
+
+ ) as any,
value: LOGIN_AS_NO_ORG,
})
return (
@@ -653,7 +674,7 @@ function constructNestedMenuOptions(
text: submenu,
content: (
-
+
{items.map((item) => {
const { key, text, value } = item
return (
diff --git a/src/utils/defaultLanguageStrings.ts b/src/utils/defaultLanguageStrings.ts
index fd80af8c7..ca2199585 100644
--- a/src/utils/defaultLanguageStrings.ts
+++ b/src/utils/defaultLanguageStrings.ts
@@ -236,7 +236,7 @@ export default {
LABEL_FILE_UPLOAD_PLACEHOLDER: 'Use the above bar to browse your file system',
LABEL_FILE_DOWNLOAD_ERROR: 'Error trying to download',
LABEL_NO_ORG: 'No organisation',
- LABEL_NO_ORG_SELECT: 'No organisation (act as user only)',
+ LABEL_USER_ONLY: '(Act as user only)',
LABEL_NO_ORG_OPTION: 'Log in without organisation',
LABEL_PROCESSING: 'Processing...',
LABEL_PREVIOUS_REVIEW: 'Previous review',