Skip to content

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

polish: user interface improvements in the search area

Ilian Sapundshiev29dfedfd6007
diff --git a/app/components/Search.tsx b/app/components/Search.tsx
index f8d2d2d22..4c0e4bd2e 100644
--- a/app/components/Search.tsx
+++ b/app/components/Search.tsx
@@ -848,7 +848,7 @@ const Search = (props: Props) => {
className={classes.formControl}
disabled={indexing || !Pro}
>
- <ProTooltip>
+ <ProTooltip tooltip="Filter the search result by their type">
<InputLabel htmlFor="file-type">
{i18n.t('core:fileType')}
</InputLabel>
@@ -959,7 +959,7 @@ const Search = (props: Props) => {
className={classes.formControl}
disabled={indexing || !Pro}
>
- <ProTooltip>
+ <ProTooltip tooltip="Filter the search results by their file size">
<InputLabel shrink htmlFor="file-size">
{i18n.t('core:sizeSearchTitle')}
</InputLabel>
@@ -1005,7 +1005,7 @@ const Search = (props: Props) => {
className={classes.formControl}
disabled={indexing || !Pro}
>
- <ProTooltip>
+ <ProTooltip tooltip="Filter the search result by last modified date">
<InputLabel shrink htmlFor="modification-date">
{i18n.t('core:lastModifiedSearchTitle')}
</InputLabel>
@@ -1040,7 +1040,7 @@ const Search = (props: Props) => {
</ProTooltip>
</FormControl>
<FormControl className={classes.formControl}>
- <ProTooltip>
+ <ProTooltip tooltip="Filter the search results for a given time period">
<TextField
id="tagTimePeriod"
label={i18n.t('Enter time period')}
@@ -1092,7 +1092,7 @@ const Search = (props: Props) => {
className={classes.formControl}
disabled={indexing || !Pro}
>
- <ProTooltip>
+ <ProTooltip tooltip="Saved search queries for later use">
<InputLabel shrink htmlFor="saved-searches">
{i18n.t('core:savedSearchesTitle')}
</InputLabel>
diff --git a/app/components/SidePanels.css.tsx b/app/components/SidePanels.css.tsx
index c0b36be4d..7cac89c09 100644
--- a/app/components/SidePanels.css.tsx
+++ b/app/components/SidePanels.css.tsx
@@ -60,9 +60,11 @@ export default (theme: any) =>
searchArea: {
paddingTop: 0,
paddingLeft: 5,
+ paddingRight: 5,
marginTop: 0,
height: 'calc(100% - 110px)',
maxHeight: 'calc(100% - 110px)',
+ overflowX: 'hidden',
overflowY: AppConfig.isFirefox ? 'auto' : 'overlay'
},
topShadow: {
diff --git a/app/components/menus/SearchMenu.tsx b/app/components/menus/SearchMenu.tsx
index 53c2436be..43b8f5d96 100644
--- a/app/components/menus/SearchMenu.tsx
+++ b/app/components/menus/SearchMenu.tsx
@@ -27,6 +27,7 @@ import ExportImportIcon from '@material-ui/icons/SwapHoriz';
import i18n from '-/services/i18n';
import { Pro } from '../../pro';
import Links from '-/links';
+import { ProLabel } from '-/components/HelperComponents';
interface Props {
classes?: any;
@@ -69,7 +70,14 @@ const SearchMenu = (props: Props) => {
<ListItemIcon>
<ExportImportIcon />
</ListItemIcon>
- <ListItemText primary={i18n.t('core:exportSavedSearch')} />
+ <ListItemText
+ primary={
+ <>
+ {i18n.t('core:exportSavedSearch')}
+ <ProLabel />
+ </>
+ }
+ />
</MenuItem>
);
menuItems.push(
@@ -84,7 +92,14 @@ const SearchMenu = (props: Props) => {
<ListItemIcon>
<ExportImportIcon />
</ListItemIcon>
- <ListItemText primary={i18n.t('core:importSavedSearch')} />
+ <ListItemText
+ primary={
+ <>
+ {i18n.t('core:importSavedSearch')}
+ <ProLabel />
+ </>
+ }
+ />
</MenuItem>
);
menuItems.push(