Skip to content

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

chore: small ui improvements

Ilian Sapundshiev8a4a024e7b8f
diff --git a/src/renderer/components/TsToolbarButton.tsx b/src/renderer/components/TsToolbarButton.tsx
index f57f479c8..d1945a44d 100644
--- a/src/renderer/components/TsToolbarButton.tsx
+++ b/src/renderer/components/TsToolbarButton.tsx
@@ -52,6 +52,8 @@ function TsToolbarButton(props: TSIconButtonProps) {
style={{
borderRadius: AppConfig.defaultCSSRadius,
padding: 8,
+ paddingLeft: 6,
+ paddingRight: 6,
display: 'block',
...style,
}}
diff --git a/src/renderer/components/ZoomComponent.tsx b/src/renderer/components/ZoomComponent.tsx
index 4d7261ece..6f4e57b10 100644
--- a/src/renderer/components/ZoomComponent.tsx
+++ b/src/renderer/components/ZoomComponent.tsx
@@ -100,7 +100,12 @@ export default function ZoomComponent(props: Props) {
</TsToolbarButton>
<Typography
variant="overline"
- style={{ color: theme.palette.text.primary, margin: 5 }}
+ style={{
+ color: theme.palette.text.primary,
+ margin: 3,
+ marginTop: 5,
+ fontSize: 11,
+ }}
>
{entrySizePercent}
</Typography>
diff --git a/src/renderer/locales/en/core.json b/src/renderer/locales/en/core.json
index 149aba809..5c39c81d0 100644
--- a/src/renderer/locales/en/core.json
+++ b/src/renderer/locales/en/core.json
@@ -954,5 +954,6 @@
"parentFolder": "Parent folder",
"remove": "Remove",
"send": "Send",
+ "folderSpecificSettings": "folder specific",
"-": "-"
}
diff --git a/src/renderer/perspectives/grid/components/MainToolbar.tsx b/src/renderer/perspectives/grid/components/MainToolbar.tsx
index 3e1c3d0d4..22db988d1 100644
--- a/src/renderer/perspectives/grid/components/MainToolbar.tsx
+++ b/src/renderer/perspectives/grid/components/MainToolbar.tsx
@@ -174,6 +174,17 @@ function MainToolbar(props: Props) {
>
<EntryPropertiesIcon />
</TsToolbarButton>
+ <TsToolbarButton
+ tooltip={t('core:sort')}
+ aria-label={t('core:sort')}
+ title={t('core:sort')}
+ data-tid={prefixDataTID + 'PerspectiveSortMenu'}
+ onClick={(e) => {
+ handleSortingMenu(e);
+ }}
+ >
+ <SortingIcon />
+ </TsToolbarButton>
<Divider flexItem orientation="vertical" sx={{ mx: 0.5, my: 1.5 }} />
<Box sx={{ display: selectedEntries.length < 1 ? 'none' : 'flex' }}>
{!readOnlyMode && (
@@ -239,17 +250,10 @@ function MainToolbar(props: Props) {
)}
<Divider flexItem orientation="vertical" sx={{ mx: 0.5, my: 1 }} />
</Box>
- <TsToolbarButton
- tooltip={t('core:sort')}
- aria-label={t('core:sort')}
- title={t('core:sort')}
- data-tid={prefixDataTID + 'PerspectiveSortMenu'}
- onClick={(e) => {
- handleSortingMenu(e);
- }}
- >
- <SortingIcon />
- </TsToolbarButton>
+ <Box sx={{ display: { xs: 'none', sm: 'flex' } }}>
+ <ZoomComponent preview={false} />
+ <Divider flexItem orientation="vertical" sx={{ mx: 0.5, my: 1 }} />
+ </Box>
{showDownloadButton && (
<TsToolbarButton
tooltip={t('core:downloadFiles')}
@@ -271,11 +275,6 @@ function MainToolbar(props: Props) {
<ExportIcon />
</TsToolbarButton>
)}
- <Divider flexItem orientation="vertical" sx={{ mx: 0.5, my: 1.5 }} />
- <Box sx={{ display: { xs: 'none', sm: 'flex' } }}>
- <ZoomComponent preview={false} />
- <Divider flexItem orientation="vertical" sx={{ mx: 0.5, my: 1 }} />
- </Box>
{AppConfig.isElectron && !currentLocation?.haveObjectStoreSupport() && (
<TsToolbarButton
tooltip={t('core:dragMode')}
@@ -293,7 +292,9 @@ function MainToolbar(props: Props) {
<TsToolbarButton
tooltip={
t('core:perspectiveSettingsTitle') +
- (folderSettingsAvailable ? ' - folder specific' : '')
+ (folderSettingsAvailable
+ ? ' - ' + t('core:folderSpecificSettings')
+ : '')
}
title={t('core:setting')}
data-tid={prefixDataTID + 'PerspectiveOptionsMenu'}