From b65fee1f98ae550e2483d7426a349a054583f3f4 Mon Sep 17 00:00:00 2001 From: AlexisG Date: Thu, 28 Nov 2024 13:11:17 +0100 Subject: [PATCH] feat: Adjust MoreMenu order in public views --- src/modules/public/PublicToolbarByLink.jsx | 8 ++++++-- src/modules/public/PublicToolbarCozyToCozy.jsx | 8 ++++++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/src/modules/public/PublicToolbarByLink.jsx b/src/modules/public/PublicToolbarByLink.jsx index a7f054274a..1afc98656b 100644 --- a/src/modules/public/PublicToolbarByLink.jsx +++ b/src/modules/public/PublicToolbarByLink.jsx @@ -1,6 +1,7 @@ import { useDisplayedFolder } from 'hooks' import React from 'react' +import Divider from 'cozy-ui/transpiled/react/Divider' import useBreakpoints from 'cozy-ui/transpiled/react/providers/Breakpoints' import { BarRightOnMobile } from 'components/Bar' @@ -49,12 +50,15 @@ const PublicToolbarByLink = ({ showSelectionBar={showSelectionBar} actions={[]} > - {isMobile && } {isMobile && files.length > 0 && ( )} - {isMobile && hasWriteAccess && } {files.length > 1 && } + {isMobile && hasWriteAccess && } + {isMobile && (files.length > 1 || hasWriteAccess) && ( + + )} + {isMobile && } )} diff --git a/src/modules/public/PublicToolbarCozyToCozy.jsx b/src/modules/public/PublicToolbarCozyToCozy.jsx index 7845f96faa..9a8689fb5b 100644 --- a/src/modules/public/PublicToolbarCozyToCozy.jsx +++ b/src/modules/public/PublicToolbarCozyToCozy.jsx @@ -1,5 +1,6 @@ import React from 'react' +import Divider from 'cozy-ui/transpiled/react/Divider' import useBreakpoints from 'cozy-ui/transpiled/react/providers/Breakpoints' import { BarRightOnMobile } from 'components/Bar' @@ -34,12 +35,15 @@ const PublicToolbarCozyToCozy = ({ showSelectionBar={showSelectionBar} actions={[]} > + {isMobile && files.length > 0 && } + {files.length > 1 && } + {((isMobile && files.length > 0) || files.length > 1) && ( + + )} - {isMobile && files.length > 0 && } - {files.length > 1 && } )