TagSpaces is an offline, open source, document manager with tagging support
minor fixes
stanimira6f92a1b0fc5
diff --git a/app/assets/rc-table.css b/app/assets/rc-table.cssindex 7173d287a..4ae06494b 100644--- a/app/assets/rc-table.css+++ b/app/assets/rc-table.css@@ -17,23 +17,15 @@}.rc-table tr.dropzone td {- /*margin: 5px;*/- /*background-color: #1dd19f40; overriden with transparent from .rc-table !important*/+ background-color: #1dd19f40 !important;border: 3px dashed white;- /*font-size: 20px;*/- /*font-weight: bold;*/- /*color: white;*/+ padding: 5px;}-.rc-table tr.dropzone td span {- white-space: nowrap;- overflow: hidden;+.rc-table tr.dropzonemove td::before {+ content: "Move ";}-.rc-table tr.dropzone td::before {- content: "Move files here...";- /*position: absolute;- top: 0;- left: 0;- right: 0;- bottom: 0;*/++.rc-table tr.dropzonecopy td::before {+ content: "Copy ";}diff --git a/app/components/TargetMoveFileBox.tsx b/app/components/TargetMoveFileBox.tsxindex 929390d2c..8d3e2acba 100644--- a/app/components/TargetMoveFileBox.tsx+++ b/app/components/TargetMoveFileBox.tsx@@ -32,13 +32,13 @@ const styles: any = () => ({backgroundColor: '#1dd19f40',zIndex: 1000,border: '3px dashed white',- display: 'flex',- justifyContent: 'center',+ display: 'flex'+ /* justifyContent: 'center',alignItems: 'center',textAlign: 'center',fontSize: '20px',fontWeight: 'bold',- color: 'white'+ color: 'white' */}});@@ -60,7 +60,9 @@ const TargetMoveFileBox = (props: Props) => {const { classes, canDrop, isOver, connectDropTarget, children } = props;const dragContent =canDrop && isOver ? (- <div className={classes.dropzone}>{i18n.t('core:releaseToMoveDrop')}</div>+ <div+ className={classes.dropzone}+ /> /* {i18n.t('core:releaseToMoveDrop')} */) : (undefined);diff --git a/app/components/TargetTableMoveFileBox.tsx b/app/components/TargetTableMoveFileBox.tsxindex 92a4fda11..143b267c4 100644--- a/app/components/TargetTableMoveFileBox.tsx+++ b/app/components/TargetTableMoveFileBox.tsx@@ -19,27 +19,6 @@import React from 'react';import { DropTarget } from 'react-dnd';-/* const styles: any = () => ({- dropzone: {- margin: 5,- position: 'absolute',- top: 0,- left: 0,- right: 0,- bottom: 0,- backgroundColor: '#1dd19f40',- zIndex: 1000,- border: '3px dashed white',- display: 'flex',- justifyContent: 'center',- alignItems: 'center',- textAlign: 'center',- fontSize: '20px',- fontWeight: 'bold',- color: 'white'- }-}); */-const boxTarget = {drop(props, monitor) {return props.onDrop(props, monitor);@@ -56,7 +35,7 @@ interface Props {const TargetTableMoveFileBox = (props: Props) => {const { canDrop, isOver, connectDropTarget, ...restProps } = props;if (canDrop && isOver) {- restProps.className += ' dropzone';+ restProps.className += ' dropzone dropzonemove'; // TODO set props.location type and add dropzonecopy based on this type}return connectDropTarget(<tr {...restProps} />);};