Skip to content

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

polish: small ui changes, disable geo-tag search

Ilian Sapundshievd470934fb239
diff --git a/app/components/Search.tsx b/app/components/Search.tsx
index 34f27643b..fcc321a3c 100644
--- a/app/components/Search.tsx
+++ b/app/components/Search.tsx
@@ -71,7 +71,6 @@ import { formatDateTime, extractTimePeriod } from '-/utils/dates';
import { isPlusCode, parseLatLon } from '-/utils/misc';
import PlatformIO from '../services/platform-io';
import { AppConfig } from '-/config';
-import withMobileDialog from '@material-ui/core/withMobileDialog';
interface Props {
classes: any;
@@ -436,7 +435,7 @@ const Search = React.memo((props: Props) => {
<div className={classes.searchArea}>
<FormControl
className={classes.formControl}
- style={{ marginTop: 10 }}
+ style={{ marginTop: 10, width: '98%' }}
disabled={indexing}
>
<OutlinedInput
@@ -787,7 +786,7 @@ const Search = React.memo((props: Props) => {
)
}}
/>
- <TextField
+ {/* <TextField
id="tagPlace"
label={i18n.t('GPS coordinates or plus code')}
value={tagPlace}
@@ -808,7 +807,7 @@ const Search = React.memo((props: Props) => {
</InputAdornment>
)
}}
- />
+ /> */}
</FormControl>
<FormControl className={classes.formControl}>
<ButtonGroup style={{ justifyContent: 'center' }}>
diff --git a/app/components/SidePanels.css.tsx b/app/components/SidePanels.css.tsx
index 7030b518f..815de769f 100644
--- a/app/components/SidePanels.css.tsx
+++ b/app/components/SidePanels.css.tsx
@@ -88,7 +88,7 @@ export default (theme: any) =>
panelTitle: {
textTransform: 'uppercase',
flex: 1,
- paddingLeft: 5,
+ paddingLeft: 7,
paddingTop: 12
},
nested: {
diff --git a/app/locales/en/core.json b/app/locales/en/core.json
index 77b063997..f9f5e83e2 100644
--- a/app/locales/en/core.json
+++ b/app/locales/en/core.json
@@ -510,5 +510,8 @@
"videosFolder": "Videos",
"startImportButton": "Import",
"startExportButton": "Export",
+ "extractGeoCoordinates": "Extract geo-coordinates from files as tags",
+ "geoTagCurrentFolder": "Geo-tag current folder",
+ "toggleMapTheme": "Toggle map theme",
"-": "-"
}
diff --git a/app/reducers/settings.ts b/app/reducers/settings.ts
index b5160b0f3..48aa5961e 100644
--- a/app/reducers/settings.ts
+++ b/app/reducers/settings.ts
@@ -549,6 +549,7 @@ export const getMainVerticalSplitSize = (state: any) =>
export const getTagDelimiter = (state: any) => state.settings.tagDelimiter;
export const getMaxSearchResults = (state: any) =>
state.settings.maxSearchResult;
+export const isDesktopMode = (state: any) => state.settings.desktopMode;
export const isFirstRun = (state: any) => {
if (typeof window.ExtIsFirstRun === 'undefined') {
return state.settings.firstRun;