Skip to content

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

chore: adjustment for mobile mode

Ilian Sapundshievc47fc602f364
diff --git a/src/renderer/components/MobileNavigation.tsx b/src/renderer/components/MobileNavigation.tsx
index 73e032961..42c409462 100644
--- a/src/renderer/components/MobileNavigation.tsx
+++ b/src/renderer/components/MobileNavigation.tsx
@@ -65,6 +65,7 @@ import { AppDispatch } from '-/reducers/app';
import {
actions as SettingsActions,
getKeyBindingObject,
+ isDesktopMode,
} from '-/reducers/settings';
import { createNewInstance } from '-/services/utils-io';
import { ClickAwayListener } from '@mui/base/ClickAwayListener';
@@ -92,6 +93,7 @@ interface Props {
function MobileNavigation(props: Props) {
const { t } = useTranslation();
const theme = useTheme();
+ const desktopMode = useSelector(isDesktopMode);
const dispatch: AppDispatch = useDispatch();
const { setSelectedLocation, findLocation } = useCurrentLocationContext();
const { currentDirectoryPath } = useDirectoryContentContext();
@@ -476,7 +478,7 @@ function MobileNavigation(props: Props) {
style={{
display: 'flex',
flexDirection: 'column',
- marginTop: -12,
+ marginTop: desktopMode ? -10 : -25,
}}
>
{showProTeaser && (
@@ -498,7 +500,7 @@ function MobileNavigation(props: Props) {
backgroundColor:
currentOpenedPanel === 'locationManagerPanel'
? theme.palette.primary.light
- : 'inherit',
+ : theme.palette.background.default,
}}
data-tid="locationManager"
>
@@ -514,7 +516,7 @@ function MobileNavigation(props: Props) {
backgroundColor:
currentOpenedPanel === 'tagLibraryPanel'
? theme.palette.primary.light
- : 'inherit',
+ : theme.palette.background.default,
}}
>
<TagLibraryIcon />
@@ -528,7 +530,7 @@ function MobileNavigation(props: Props) {
backgroundColor:
currentOpenedPanel === 'searchPanel'
? theme.palette.primary.light
- : 'inherit',
+ : theme.palette.background.default,
}}
>
<RecentThingsIcon />
@@ -542,7 +544,7 @@ function MobileNavigation(props: Props) {
backgroundColor:
currentOpenedPanel === 'helpFeedbackPanel'
? theme.palette.primary.light
- : 'inherit',
+ : theme.palette.background.default,
}}
>
<HelpIcon />
@@ -554,6 +556,9 @@ function MobileNavigation(props: Props) {
onClick={() => {
openSettingsDialog();
}}
+ style={{
+ backgroundColor: theme.palette.background.default,
+ }}
title={t('core:settings')}
>
<SettingsIcon />
diff --git a/src/renderer/perspectives/grid/components/MainToolbar.tsx b/src/renderer/perspectives/grid/components/MainToolbar.tsx
index ab9b13b17..3e1c3d0d4 100644
--- a/src/renderer/perspectives/grid/components/MainToolbar.tsx
+++ b/src/renderer/perspectives/grid/components/MainToolbar.tsx
@@ -34,7 +34,6 @@ import {
TagIcon,
UnSelectedIcon,
} from '-/components/CommonIcons';
-import { ProTooltip } from '-/components/HelperComponents';
import TsToolbarButton from '-/components/TsToolbarButton';
import ZoomComponent from '-/components/ZoomComponent';
import { useAiGenerationDialogContext } from '-/components/dialogs/hooks/useAiGenerationDialogContext';
@@ -227,16 +226,16 @@ function MainToolbar(props: Props) {
</TsToolbarButton>
)}
{openShareFilesDialog && currentLocation?.haveObjectStoreSupport() && (
- <ProTooltip tooltip={t('core:shareFiles')}>
- <TsToolbarButton
- aria-label={t('core:shareFiles')}
- data-tid={prefixDataTID + 'PerspectiveShareFiles'}
- onClick={openShareFilesDialog}
- disabled={selectedEntries.length < 1}
- >
- <ShareIcon />
- </TsToolbarButton>
- </ProTooltip>
+ <TsToolbarButton
+ tooltip={t('core:shareFiles')}
+ title={t('core:shareFiles')}
+ aria-label={t('core:shareFiles')}
+ data-tid={prefixDataTID + 'PerspectiveShareFiles'}
+ onClick={openShareFilesDialog}
+ disabled={selectedEntries.length < 1}
+ >
+ <ShareIcon />
+ </TsToolbarButton>
)}
<Divider flexItem orientation="vertical" sx={{ mx: 0.5, my: 1 }} />
</Box>