fix: Styling of 'New' badge in dark mode
fix: less than a min ago -> just now
This commit is contained in:
parent
5638f7a687
commit
c8ff5cf221
|
@ -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;
|
||||
|
|
|
@ -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 (
|
||||
|
|
Reference in New Issue