fix: Styling of 'New' badge in dark mode

fix: less than a min ago -> just now
This commit is contained in:
Tom Moor 2020-09-21 19:35:51 -07:00
parent 5638f7a687
commit c8ff5cf221
2 changed files with 3 additions and 3 deletions

View File

@ -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;

View File

@ -50,8 +50,8 @@ class Time extends React.Component<Props> {
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 (