TagSpaces is an offline, open source, document manager with tagging support
chore: improving dragging element by file move
Ilian Sapundsheiv13989dd6744c
diff --git a/app/components/BoxDragPreview.tsx b/app/components/BoxDragPreview.tsxindex eff41c521..b6b9041d9 100644--- a/app/components/BoxDragPreview.tsx+++ b/app/components/BoxDragPreview.tsx@@ -1,4 +1,6 @@import React, { memo } from 'react';+import Avatar from '@material-ui/core/Avatar';+import Chip from '@material-ui/core/Chip';export interface Props {entries: Array<any>;@@ -8,8 +10,11 @@ export interface Props {export const BoxDragPreview = memo((props: Props) => {const { entries, path } = props;return (- <div style={{ display: 'inline-block' }}>- {entries.length > 0 ? entries.map(entry => <h4>{entry.name}</h4>) : path}- </div>+ <Chip+ size="small"+ avatar={<Avatar>{entries.length}</Avatar>}+ label="files selected"+ color="primary"+ />);});