TagSpaces is an offline, open source, document manager with tagging support
fix: issue with swapped tag color in tag preview component for sidecar tags
Ilian Sapundshiev06fdfd5dd214
diff --git a/src/renderer/components/TagContainer.tsx b/src/renderer/components/TagContainer.tsxindex c325c40d2..ff674bab8 100644--- a/src/renderer/components/TagContainer.tsx+++ b/src/renderer/components/TagContainer.tsx@@ -213,7 +213,7 @@ function TagContainer(props: Props) {{(isTagGeo || isGeoSmartTag) && (<PlaceIconstyle={{- color: tag.textcolor,+ color: textColor,height: 20,marginBottom: -5,marginLeft: -5,@@ -224,7 +224,7 @@ function TagContainer(props: Props) {{(isTagDate || isDateSmartTag) && (<DateIconstyle={{- color: tag.textcolor,+ color: textColor,height: 20,marginBottom: -5,marginLeft: -5,diff --git a/src/renderer/components/TagsPreview.tsx b/src/renderer/components/TagsPreview.tsxindex 286bdc167..55512b40e 100644--- a/src/renderer/components/TagsPreview.tsx+++ b/src/renderer/components/TagsPreview.tsx@@ -47,8 +47,8 @@ function TagsPreview(props: Props) {let firstTagColor: string;let firstTagTextColor: string;if (tags[0].color && tags[0].textcolor) {- firstTagColor = tags[0].textcolor;- firstTagTextColor = tags[0].color;+ firstTagColor = tags[0].color;+ firstTagTextColor = tags[0].textcolor;} else {const tagColors = getTagColors(tags[0].title,