TagSpaces is an offline, open source, document manager with tagging support
small ui responsive improvements
Ilian Sapundshiev532081fc1c8f
diff --git a/app/components/EntryContainer.js b/app/components/EntryContainer.jsindex 635fb021b..1939dc515 100644--- a/app/components/EntryContainer.js+++ b/app/components/EntryContainer.js@@ -723,24 +723,24 @@ class EntryContainer extends React.Component<Props, State> {<RefreshIcon /></IconButton>{ !this.props.isReadOnlyMode && (- <div>- <IconButton- aria-label={i18n.t('core:duplicateFile')}- title={i18n.t('core:duplicateFile')}- onClick={() => {- this.setState({ shouldCopyFile: true });- }}- >- <CopyContentIcon />- </IconButton>- <IconButton- title={i18n.t('core:deleteEntry')}- aria-label={i18n.t('core:deleteEntry')}- onClick={() => this.setState({ isDeleteEntryModalOpened: true })}- >- <DeleteIcon />- </IconButton>- </div>+ <IconButton+ aria-label={i18n.t('core:duplicateFile')}+ title={i18n.t('core:duplicateFile')}+ onClick={() => {+ this.setState({ shouldCopyFile: true });+ }}+ >+ <CopyContentIcon />+ </IconButton>+ )}+ { !this.props.isReadOnlyMode && (+ <IconButton+ title={i18n.t('core:deleteEntry')}+ aria-label={i18n.t('core:deleteEntry')}+ onClick={() => this.setState({ isDeleteEntryModalOpened: true })}+ >+ <DeleteIcon />+ </IconButton>)}</div><IconButtondiff --git a/app/perspectives/grid-perspective/src/index.js b/app/perspectives/grid-perspective/src/index.jsindex 1628ae4b2..dbdb0827c 100644--- a/app/perspectives/grid-perspective/src/index.js+++ b/app/perspectives/grid-perspective/src/index.js@@ -924,35 +924,37 @@ class GridPerspective extends React.Component<Props, State> {</IconButton>)}{!this.props.isReadOnlyMode && (- <div>- <IconButton- title={i18n.t('core:tagSelectedEntries')}- aria-label={i18n.t('core:tagSelectedEntries')}- data-tid="gridPerspectiveAddRemoveTags"- disabled={selectedEntries.length < 1}- onClick={this.openAddRemoveTagsDialog}- >- <TagIcon />- </IconButton>- <IconButton- title={i18n.t('core:copyMoveSelectedEntries')}- aria-label={i18n.t('core:copyMoveSelectedEntries')}- data-tid="gridPerspectiveCopySelectedFiles"- disabled={!this.state.fileOperationsEnabled}- onClick={this.openMoveCopyFilesDialog}- >- <CopyIcon />- </IconButton>- <IconButton- title={i18n.t('core:deleteSelectedEntries')}- aria-label={i18n.t('core:deleteSelectedEntries')}- data-tid="gridPerspectiveDeleteMultipleFiles"- disabled={!this.state.fileOperationsEnabled}- onClick={this.openDeleteFileDialog}- >- <DeleteIcon />- </IconButton>- </div>+ <IconButton+ title={i18n.t('core:tagSelectedEntries')}+ aria-label={i18n.t('core:tagSelectedEntries')}+ data-tid="gridPerspectiveAddRemoveTags"+ disabled={selectedEntries.length < 1}+ onClick={this.openAddRemoveTagsDialog}+ >+ <TagIcon />+ </IconButton>+ )}+ {!this.props.isReadOnlyMode && (+ <IconButton+ title={i18n.t('core:copyMoveSelectedEntries')}+ aria-label={i18n.t('core:copyMoveSelectedEntries')}+ data-tid="gridPerspectiveCopySelectedFiles"+ disabled={!this.state.fileOperationsEnabled}+ onClick={this.openMoveCopyFilesDialog}+ >+ <CopyIcon />+ </IconButton>+ )}+ {!this.props.isReadOnlyMode && (+ <IconButton+ title={i18n.t('core:deleteSelectedEntries')}+ aria-label={i18n.t('core:deleteSelectedEntries')}+ data-tid="gridPerspectiveDeleteMultipleFiles"+ disabled={!this.state.fileOperationsEnabled}+ onClick={this.openDeleteFileDialog}+ >+ <DeleteIcon />+ </IconButton>)}<IconButtontitle={i18n.t('core:sort')}