TagSpaces is an offline, open source, document manager with tagging support
fixing dropdown issue by autosuggest
Ilian Sapundshiev87a7132d1037
diff --git a/app/assets/minireset.css b/app/assets/minireset.cssindex 73cd30332..f80c0fd54 100644--- a/app/assets/minireset.css+++ b/app/assets/minireset.css@@ -3,7 +3,6 @@ html, body, div, form, fieldset, legend, label{margin: 0;padding: 0;- overflow: hidden;}tablediff --git a/app/components/SidePanels.css.js b/app/components/SidePanels.css.jsindex b8b7359e4..e3fa9b0be 100644--- a/app/components/SidePanels.css.js+++ b/app/components/SidePanels.css.js@@ -52,7 +52,8 @@ export default (theme) => ({paddingTop: 0,paddingLeft: 5,marginTop: 0,- maxHeight: '100%',+ height: 'calc(100% - 80px)',+ maxHeight: 'calc(100% - 80px)',overflowY: AppConfig.isFirefox ? 'auto' : 'overlay'},topShadow: {diff --git a/app/components/TagContainer.js b/app/components/TagContainer.jsindex f6368e53d..235cdf476 100644--- a/app/components/TagContainer.js+++ b/app/components/TagContainer.js@@ -105,7 +105,7 @@ class TagContainer extends React.Component<Props> {backgroundColor: 'transparent',marginLeft: 4,marginTop: 0,- marginBottom: 0,+ marginBottom: 4,display: 'inline-block'}}>diff --git a/app/components/TagsSelect.js b/app/components/TagsSelect.jsindex 8eb50a0fc..7c626cefb 100644--- a/app/components/TagsSelect.js+++ b/app/components/TagsSelect.js@@ -75,7 +75,7 @@ const styles = theme => ({fontSize: 16,},paper: {- // position: 'absolute',+ position: 'absolute',zIndex: 1,marginTop: theme.spacing.unit,left: 0,diff --git a/app/components/dialogs/AddRemoveTagsDialog.js b/app/components/dialogs/AddRemoveTagsDialog.jsindex 00cc6fc1c..f50b25c5d 100644--- a/app/components/dialogs/AddRemoveTagsDialog.js+++ b/app/components/dialogs/AddRemoveTagsDialog.js@@ -22,10 +22,16 @@ import Button from '@material-ui/core/Button';import DialogActions from '@material-ui/core/DialogActions';import DialogContent from '@material-ui/core/DialogContent';import DialogTitle from '@material-ui/core/DialogTitle';+import List from '@material-ui/core/List';+import ListItem from '@material-ui/core/ListItem';+import ListItemIcon from '@material-ui/core/ListItemIcon';+import FileIcon from '@material-ui/icons/InsertDriveFileOutlined';+import Typography from '@material-ui/core/Typography';import GenericDialog from './GenericDialog';import { type Tag } from '../../reducers/taglibrary';import TagsSelect from '../TagsSelect';import i18n from '../../services/i18n';+import { extractFileName } from '../../utils/paths';type Props = {open: boolean,@@ -93,14 +99,18 @@ class AddRemoveTagsDialog extends React.Component<Props, State> {<DialogTitle>{i18n.t('core:tagOperationTitle')}</DialogTitle>)}renderContent={() => (- <DialogContent>+ <DialogContent style={{ minHeight: 330 }}><TagsSelect tagQuery={newlyAddedTags} handleChange={this.handleChange} />- {/* <TagAutoSuggestion- selectedEntries={selectedEntries}- newlyAddedTags={newlyAddedTags}- onAddTag={this.onAddTag}- onRemoveTag={this.onRemoveTag}- /> */}+ <List dense style={{ width: 550 }}>+ {selectedEntries.length > 0 && selectedEntries.map((entry) => (+ <ListItem title={entry.path}>+ <ListItemIcon>+ <FileIcon />+ </ListItemIcon>+ <Typography variant="inherit" noWrap>{extractFileName(entry.path || '')}</Typography>+ </ListItem>+ ))}+ </List></DialogContent>)}renderActions={() => (diff --git a/app/components/dialogs/MoveCopyFilesDialog.js b/app/components/dialogs/MoveCopyFilesDialog.jsindex 17a3a4825..76f9ca446 100644--- a/app/components/dialogs/MoveCopyFilesDialog.js+++ b/app/components/dialogs/MoveCopyFilesDialog.js@@ -35,7 +35,7 @@ import DialogContent from '@material-ui/core/DialogContent';import DialogTitle from '@material-ui/core/DialogTitle';import FormControl from '@material-ui/core/FormControl';import FormHelperText from '@material-ui/core/FormHelperText';-import { Typography } from '@material-ui/core';+import Typography from '@material-ui/core/Typography';import GenericDialog, { onEnterKeyHandler } from './GenericDialog';import i18n from '../../services/i18n';// import { extractContainingDirectoryPath } from '../../utils/paths';