Skip to content

TagSpaces is an offline, open source, document manager with tagging support

fix: menu optimization for mobile

Ilian Sapundshiev0da8348518d7
diff --git a/app/components/CustomLogo.tsx b/app/components/CustomLogo.tsx
index cb48f972f..4605370ae 100644
--- a/app/components/CustomLogo.tsx
+++ b/app/components/CustomLogo.tsx
@@ -66,7 +66,11 @@ function CustomLogo(props: Props) {
<AppVersionBadge badgeContent={'v' + versionMeta.version} color="primary">
<Tooltip title={i18n.t('core:openNewInstance')}>
<IconButton
- onClick={() => PlatformIO.createNewInstance()}
+ onClick={() => {
+ AppConfig.isCordova
+ ? props.toggleAboutDialog()
+ : PlatformIO.createNewInstance();
+ }}
style={{ padding: 0, paddingLeft: 5, height: 50 }}
data-tid="createNewInstance"
>
diff --git a/app/components/EntryContainer.tsx b/app/components/EntryContainer.tsx
index 27ab4deb6..9936dcb2a 100644
--- a/app/components/EntryContainer.tsx
+++ b/app/components/EntryContainer.tsx
@@ -748,15 +748,17 @@ function EntryContainer(props: Props) {
<OpenNewWindowIcon />
</IconButton>
</Tooltip>
- <Tooltip title={i18n.t('core:openInWindow')}>
- <IconButton
- aria-label={i18n.t('core:openInWindow')}
- onClick={openInNewWindow}
- size="large"
- >
- <OpenNewWindowIcon />
- </IconButton>
- </Tooltip>
+ {!AppConfig.isCordova && (
+ <Tooltip title={i18n.t('core:openInWindow')}>
+ <IconButton
+ aria-label={i18n.t('core:openInWindow')}
+ onClick={openInNewWindow}
+ size="large"
+ >
+ <OpenNewWindowIcon />
+ </IconButton>
+ </Tooltip>
+ )}
{AppConfig.isCordova && (
<Tooltip title={i18n.t('core:shareFile')}>
<IconButton
@@ -928,15 +930,17 @@ function EntryContainer(props: Props) {
<OpenNewWindowIcon />
</IconButton>
</Tooltip>
- <Tooltip title={i18n.t('core:openInWindow')}>
- <IconButton
- aria-label={i18n.t('core:openInWindow')}
- onClick={openInNewWindow}
- size="large"
- >
- <OpenNewWindowIcon />
- </IconButton>
- </Tooltip>
+ {!AppConfig.isCordova && (
+ <Tooltip title={i18n.t('core:openInWindow')}>
+ <IconButton
+ aria-label={i18n.t('core:openInWindow')}
+ onClick={openInNewWindow}
+ size="large"
+ >
+ <OpenNewWindowIcon />
+ </IconButton>
+ </Tooltip>
+ )}
{!(
PlatformIO.haveObjectStoreSupport() ||
PlatformIO.haveWebDavSupport() ||