From c8ff5cf2213a099b4df7fa9f761b94ad8e9e38e7 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Mon, 21 Sep 2020 19:35:51 -0700 Subject: [PATCH] fix: Styling of 'New' badge in dark mode fix: less than a min ago -> just now --- app/components/Badge.js | 2 +- app/components/Time.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/components/Badge.js b/app/components/Badge.js index c138111f..ea3ac1f5 100644 --- a/app/components/Badge.js +++ b/app/components/Badge.js @@ -7,7 +7,7 @@ const Badge = styled.span` background-color: ${({ yellow, primary, theme }) => yellow ? theme.yellow : primary ? theme.primary : theme.textTertiary}; color: ${({ primary, yellow, theme }) => - primary ? theme.white : yellow ? theme.text : theme.background}; + primary ? theme.white : yellow ? theme.almostBlack : theme.background}; border-radius: 4px; font-size: 11px; font-weight: 500; diff --git a/app/components/Time.js b/app/components/Time.js index bee88cf6..927984ee 100644 --- a/app/components/Time.js +++ b/app/components/Time.js @@ -50,8 +50,8 @@ class Time extends React.Component { if (shorten) { content = content .replace("about", "") - .replace("minute", "min") - .replace("less than a minute ago", "just now"); + .replace("less than a minute ago", "just now") + .replace("minute", "min"); } return (