TagSpaces is an offline, open source, document manager with tagging support
chore: small ui adjustments
Ilian Sapundshiev0bb623ea6004
diff --git a/src/renderer/components/EntryProperties.tsx b/src/renderer/components/EntryProperties.tsxindex c3d99b341..ae78fcbec 100644--- a/src/renderer/components/EntryProperties.tsx+++ b/src/renderer/components/EntryProperties.tsx@@ -632,7 +632,7 @@ function EntryProperties({ tileServer }: Props) {keyboard={false}dragging={true}center={geoLocation}- zoom={13}+ zoom={10}scrollWheelZoom={false}zoomControl={true}attributionControl={false}@@ -651,57 +651,44 @@ function EntryProperties({ tileServer }: Props) {position={[geoLocation.lat, geoLocation.lng]}><Popup>- <Typography- sx={{ margin: 0, color: theme.palette.text.primary }}+ <Box+ sx={{+ marginBottom: '-15px',+ marginTop: '-22px',+ marginLeft: '-22px',+ marginRight: '-25px',+ padding: '10px',+ backgroundColor: 'background.default',+ borderRadius: AppConfig.defaultCSSRadius,+ }}>- {t('core:lat') + ' : ' + geoLocation.lat}- <br />- {t('core:lat') + ' : ' + geoLocation.lng}- </Typography>- <br />- <p>- <TsButton- onClick={() => {- openUrl(- 'https://www.openstreetmap.org/?mlat=' +- geoLocation.lat +- '&mlon=' +- geoLocation.lng +- '#map=14/' +- geoLocation.lat +- '/' +- geoLocation.lng,- );- }}- title="Open in OpenStreetMap"- >- Open in- <br />- OpenStreetMap- </TsButton>- <TsButton- sx={{- marginLeft: AppConfig.defaultSpaceBetweenButtons,- }}- onClick={() => {- openUrl(- 'https://maps.google.com/?q=' +- geoLocation.lat +- ',' +- geoLocation.lng +- '&ll=' +- geoLocation.lat +- ',' +- geoLocation.lng +- '&z=15',- );- }}- >- Open in- <br />- Google Maps- </TsButton>- </p>+ <Typography sx={{ color: 'text.primary' }}>+ {`${t('core:lat')}: ${geoLocation.lat}, ${t('core:lng')}: ${geoLocation.lng}`}+ </Typography>+ <Box sx={{ display: 'inline-flex' }}>+ <TsButton+ onClick={() => {+ openUrl(+ `https://www.openstreetmap.org/?mlat=${geoLocation.lat}&mlon=${geoLocation.lng}#map=10/${geoLocation.lat}/${geoLocation.lng}`,+ );+ }}+ >+ {t('core:openInApp', { appName: 'OpenStreetMap' })}+ </TsButton>+ <TsButton+ sx={{+ marginLeft: AppConfig.defaultSpaceBetweenButtons,+ }}+ onClick={() => {+ openUrl(+ `https://maps.google.com/?q=${geoLocation.lat},${geoLocation.lng}&ll=${geoLocation.lat},${geoLocation.lng}&z=10`,+ );+ }}+ >+ {t('core:openInApp', { appName: 'Google Maps' })}+ </TsButton>+ </Box>+ </Box></Popup></Marker></LayerGroup>diff --git a/src/renderer/components/dialogs/AboutDialog.tsx b/src/renderer/components/dialogs/AboutDialog.tsxindex 21139397d..2b60c3302 100644--- a/src/renderer/components/dialogs/AboutDialog.tsx+++ b/src/renderer/components/dialogs/AboutDialog.tsx@@ -176,6 +176,7 @@ function AboutDialog(props: Props) {</strong>is made possible by the TagSpaces project and other open sourcesoftware listed in the:+ <br /><TsButtonsx={{ marginTop: '5px' }}onClick={() => openThirdPartyLibsDialog()}diff --git a/src/renderer/locales/en/core.json b/src/renderer/locales/en/core.jsonindex a71a7386f..b95d8bbad 100644--- a/src/renderer/locales/en/core.json+++ b/src/renderer/locales/en/core.json@@ -100,6 +100,7 @@"deleteDocument": "Delete Document","openFileExternally": "Open File Externally","openInWindow": "Open in new window",+ "openInApp": "Open in {{appName}}","showUnixHiddenFiles": "Show files/folders with a dot(.) in front of the name (e.g. Unix, Linux, OS X hidden files)","checkForNewVersionOnStartup": "Check for new version on startup","reorderTags": "Enable changing the tag order with drag and drop",