Skip to content

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

chore: mobile optimizations

Ilian Sapundshievd061d88cff5b
diff --git a/src/renderer/components/FolderContainer.tsx b/src/renderer/components/FolderContainer.tsx
index 5fb4c21ff..746431720 100644
--- a/src/renderer/components/FolderContainer.tsx
+++ b/src/renderer/components/FolderContainer.tsx
@@ -375,41 +375,32 @@ function FolderContainer({ toggleDrawer, drawerOpened, hidden }: Props) {
flexDirection: 'column',
}}
>
- {smallScreen ? (
- <TsIconButton
- tooltip={`${t('core:openSearch')} (${openSearchKeyBinding})`}
- data-tid="toggleSearch"
- onClick={openSearchMode}
- sx={{
- maxWidth: 100,
- WebkitAppRegion: 'no-drag',
- }}
- >
- <SearchIcon />
- </TsIconButton>
- ) : (
- <TsButton
- data-tid="toggleSearch"
- onClick={openSearchMode}
- startIcon={<SearchIcon />}
- sx={{
- marginTop: '-2px',
- marginRight: '5px',
- minWidth: '80px',
- maxHeight: 32,
- width: 'stretch',
- maxWidth: '200px',
- margin: '0 auto',
- whiteSpace: 'nowrap',
- overflow: 'hidden',
- WebkitAppRegion: 'no-drag',
- }}
- >
- {t('core:searchTitle')}
- <Box sx={{ width: 10 }} />
- {openSearchKeyBinding}
- </TsButton>
- )}
+ <TsButton
+ data-tid="toggleSearch"
+ onClick={openSearchMode}
+ startIcon={<SearchIcon />}
+ sx={{
+ marginTop: '-2px',
+ marginRight: 0,
+ marginLedt: 0,
+ minWidth: '80px',
+ maxHeight: 32,
+ width: 'stretch',
+ maxWidth: '200px',
+ margin: '0 auto',
+ whiteSpace: 'nowrap',
+ overflow: 'hidden',
+ WebkitAppRegion: 'no-drag',
+ }}
+ >
+ {t('core:searchTitle')}
+ {isDesktopMode && (
+ <>
+ <Box sx={{ width: 10 }} />
+ {openSearchKeyBinding}{' '}
+ </>
+ )}
+ </TsButton>
</Box>
{progress?.length > 0 && (
<TsIconButton