Skip to content

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

fix: making number of selected files visible in the drag layer

Ilian Sapundshiev89a790615ffe
diff --git a/app/components/FilesDragPreview.tsx b/app/components/FilesDragPreview.tsx
index b327b7110..065a9f374 100644
--- a/app/components/FilesDragPreview.tsx
+++ b/app/components/FilesDragPreview.tsx
@@ -1,6 +1,7 @@
import React from 'react';
import Avatar from '@mui/material/Avatar';
import Chip from '@mui/material/Chip';
+import i18n from '-/services/i18n';
export interface Props {
entries: Array<any>;
@@ -13,7 +14,8 @@ export function FilesDragPreview(props: Props) {
<Chip
size="small"
avatar={<Avatar>{entries.length}</Avatar>}
- label="files selected"
+ style={{ marginLeft: 15 }}
+ label={i18n.t('core:selectedFiles')}
color="primary"
/>
);