Skip to content

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

fix: issue with number of tags in tagspreview

Ilian Sapundshievbc068b36ed64
diff --git a/app/components/TagsPreview.tsx b/app/components/TagsPreview.tsx
index f5524aefd..be8979ca5 100644
--- a/app/components/TagsPreview.tsx
+++ b/app/components/TagsPreview.tsx
@@ -48,7 +48,8 @@ function TagsPreview(props: Props) {
});
// const tag1Colors = getTagColors(allTags.current, tags[0].title);
- const firstTagColor = tags[0].color || defaultBackgroundColor; // || tag1Colors.color
+ const firstTagColor = tags[0].color || defaultBackgroundColor;
+ const firstTagTextColor = tags[0].textcolor || defaultTextColor;
let secondTagColor = defaultBackgroundColor;
let moreThanOne = false;
if (tags[1]) {
@@ -72,7 +73,7 @@ function TagsPreview(props: Props) {
backgroundColor: firstTagColor,
fontSize: 11,
lineHeight: '16px',
- color: firstTagColor || defaultTextColor, //tag1Colors.textcolor ,
+ color: firstTagTextColor || defaultTextColor, //tag1Colors.textcolor ,
textAlign: 'center'
}}
>