Skip to content

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

Fixing drag and drop highlight of tags #1021

Ilian Sapundshiev1db4b8cf59af
diff --git a/app/components/TagDropContainer.js b/app/components/TagDropContainer.js
index 90b00ff75..1f8b89619 100644
--- a/app/components/TagDropContainer.js
+++ b/app/components/TagDropContainer.js
@@ -46,8 +46,8 @@ const TagDropContainer = (props: Props) => {
border = '2px solid #f7cf00';
backgroundColor = '#f7cf00';
} else if (canDrop) {
- border = '2px solid #ffeaa5';
- backgroundColor = '#ffeaa5';
+ border = '2px solid lightgray';
+ backgroundColor = 'lightgray';
}
return connectDropTarget(
diff --git a/app/components/TagGroupContainer.js b/app/components/TagGroupContainer.js
index 4a84d2d6d..abcad8273 100644
--- a/app/components/TagGroupContainer.js
+++ b/app/components/TagGroupContainer.js
@@ -38,11 +38,14 @@ const TagGroupContainer = (props: Props) => {
const { canDrop, isOver, connectDropTarget } = props;
const isActive = canDrop && isOver;
+ let border = '2px solid transparent';
let backgroundColor = 'transparent';
if (isActive) {
- backgroundColor = 'rgb(233, 233, 233)';
+ border = '2px solid #f7cf00';
+ backgroundColor = '#d9d9d9b5';
} else if (canDrop) {
- backgroundColor = 'rgb(212, 212, 212)';
+ // border = '2px solid gray';
+ backgroundColor = '#d9d9d9b5';
}
return connectDropTarget(
@@ -53,6 +56,7 @@ const TagGroupContainer = (props: Props) => {
paddingTop: 3,
borderRadius: 5,
minHeight: 20,
+ border,
backgroundColor
}}
>