Skip to content

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

fixed the styling of the dragged tag

Ilian Sapundshieveb04dadafe62
diff --git a/app/components/TagContainerDnd.js b/app/components/TagContainerDnd.js
index a859a9000..cafdea656 100644
--- a/app/components/TagContainerDnd.js
+++ b/app/components/TagContainerDnd.js
@@ -73,7 +73,7 @@ class TagContainerDnd extends React.Component<Props> {
const xml = '<svg version="1.1" height="25" width="100" xmlns="http://www.w3.org/2000/svg">' +
'<g>' +
'<rect x="0" y="0" rx="5" ry="5" width="100%" height="100%" style="fill:' + this.props.tag.color + ';opacity:0.5" />' +
- '<text x="50%" y="55%" dominant-baseline="middle" text-anchor="middle" fill="' + this.props.tag.textcolor + '">' + this.props.tag.title + '</text>' +
+ '<text x="50%" y="55%" font-family="Roboto,Arial,Helvetica,Sans" font-size="13" dominant-baseline="middle" text-anchor="middle" fill="' + this.props.tag.textcolor + '">' + this.props.tag.title + '</text>' +
'</g>' +
'</svg>';
const img = new Image();