Hide app title on mobile.

This commit is contained in:
Paulo Gustavo Veiga 2022-10-23 00:44:05 -07:00
parent 6ef810b77c
commit e45b4c870a
3 changed files with 7 additions and 0 deletions

View File

@ -30,6 +30,7 @@ type ActionType =
| 'edition-toolbar'
| 'sign-up'
| 'starred'
| 'appbar-title'
| 'keyboard-shortcuts';
export default ActionType;

View File

@ -176,6 +176,11 @@ const ActionConfigByRenderMode: Record<ActionType, CapabilitySupport> = {
hidden: ['viewonly', 'showcase', 'edition-viewer', 'edition-editor', 'edition-owner'],
},
},
'appbar-title': {
mobile: {
hidden: ['viewonly', 'showcase', 'edition-viewer', 'edition-editor', 'edition-owner'],
},
},
'sign-up': {
desktop: {
hidden: ['viewonly', 'edition-viewer', 'edition-editor', 'edition-owner'],

View File

@ -88,6 +88,7 @@ const AppBar = ({ model, mapInfo, capability, onAction, accountConfig }: AppBarP
},
{
render: () => <img src={LogoTextBlackSvg} />,
visible: !capability.isHidden('appbar-title'),
},
{
render: () => (