Remove buttons on mobile.

This commit is contained in:
Paulo Gustavo Veiga 2022-10-08 14:58:22 -07:00
parent 57bbd8ad6e
commit f69c45a229

View File

@ -122,7 +122,11 @@ const ActionConfigByRenderMode: Record<ActionType, CapabilitySupport> = {
hidden: ['showcase', 'viewonly', 'edition-viewer'], hidden: ['showcase', 'viewonly', 'edition-viewer'],
}, },
}, },
print: undefined, print: {
mobile: {
hidden: ['viewonly', 'showcase', 'edition-viewer', 'edition-editor', 'edition-owner'],
},
},
publish: { publish: {
desktop: { desktop: {
hidden: ['showcase', 'viewonly', 'edition-viewer', 'edition-editor'], hidden: ['showcase', 'viewonly', 'edition-viewer', 'edition-editor'],
@ -137,6 +141,9 @@ const ActionConfigByRenderMode: Record<ActionType, CapabilitySupport> = {
desktop: { desktop: {
hidden: ['showcase'], hidden: ['showcase'],
}, },
mobile: {
hidden: ['viewonly', 'showcase', 'edition-viewer', 'edition-editor', 'edition-owner'],
},
}, },
account: { account: {
desktop: { desktop: {
@ -161,7 +168,11 @@ const ActionConfigByRenderMode: Record<ActionType, CapabilitySupport> = {
hidden: ['viewonly', 'edition-viewer', 'showcase'], hidden: ['viewonly', 'edition-viewer', 'showcase'],
}, },
}, },
export: undefined, export: {
mobile: {
hidden: ['viewonly', 'showcase', 'edition-viewer', 'edition-editor', 'edition-owner'],
},
},
'sign-up': { 'sign-up': {
desktop: { desktop: {
hidden: ['viewonly', 'edition-viewer', 'edition-editor', 'edition-owner'], hidden: ['viewonly', 'edition-viewer', 'edition-editor', 'edition-owner'],