diff --git a/apps/presentationeditor/mobile/src/controller/edit/EditText.jsx b/apps/presentationeditor/mobile/src/controller/edit/EditText.jsx index 1f30916a0..ce713e8a9 100644 --- a/apps/presentationeditor/mobile/src/controller/edit/EditText.jsx +++ b/apps/presentationeditor/mobile/src/controller/edit/EditText.jsx @@ -24,7 +24,7 @@ class EditTextController extends Component { closeModal() { if ( Device.phone ) { - f7.sheet.close('.edit-popover', true); + f7.sheet.close('#edit-sheet', true); } else { f7.popover.close('#edit-popover'); } diff --git a/apps/presentationeditor/mobile/src/view/edit/EditText.jsx b/apps/presentationeditor/mobile/src/view/edit/EditText.jsx index 6dfd0b213..d5b21cc87 100644 --- a/apps/presentationeditor/mobile/src/view/edit/EditText.jsx +++ b/apps/presentationeditor/mobile/src/view/edit/EditText.jsx @@ -530,6 +530,24 @@ const PageBulletLinkSettings = (props) => { ) } +const PageAddImage = (props) => { + const { t } = useTranslation(); + const _t = t('View.Edit', {returnObjects: true}); + + return ( + + + + + + props.f7router.navigate('/edit-bullets-and-numbers/image-link/', + {props: {onInsertByUrl: props.onInsertByUrl}}) }> + + + + ) +} + const PageBullets = observer(props => { const { t } = useTranslation(); const _t = t('View.Edit', {returnObjects: true}); @@ -574,19 +592,12 @@ const PageBullets = observer(props => { ))} - { !Device.isPhone ? - - - - - - props.f7router.navigate('/edit-bullets-and-numbers/image-link/', - {props: {onInsertByUrl: props.onInsertByUrl}}) }> - - - - - : null + { !Device.isPhone && + } ) @@ -675,6 +686,15 @@ const PageBulletsAndNumbers = props => { onInsertByUrl={props.onInsertByUrl} /> + { Device.phone && + + + + } )