Skip to content

Commit

Permalink
fix: issue with swapped tag color in tag preview component for sideca…
Browse files Browse the repository at this point in the history
…r tags
  • Loading branch information
uggrock committed Apr 12, 2024
1 parent ec02b2a commit 06fdfd5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/renderer/components/TagContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ function TagContainer(props: Props) {
{(isTagGeo || isGeoSmartTag) && (
<PlaceIcon
style={{
color: tag.textcolor,
color: textColor,
height: 20,
marginBottom: -5,
marginLeft: -5,
Expand All @@ -224,7 +224,7 @@ function TagContainer(props: Props) {
{(isTagDate || isDateSmartTag) && (
<DateIcon
style={{
color: tag.textcolor,
color: textColor,
height: 20,
marginBottom: -5,
marginLeft: -5,
Expand Down
4 changes: 2 additions & 2 deletions src/renderer/components/TagsPreview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 06fdfd5

Please sign in to comment.