fix: Styling of 'New' badge in dark mode
fix: less than a min ago -> just now
This commit is contained in:
@ -7,7 +7,7 @@ const Badge = styled.span`
|
|||||||
background-color: ${({ yellow, primary, theme }) =>
|
background-color: ${({ yellow, primary, theme }) =>
|
||||||
yellow ? theme.yellow : primary ? theme.primary : theme.textTertiary};
|
yellow ? theme.yellow : primary ? theme.primary : theme.textTertiary};
|
||||||
color: ${({ primary, yellow, theme }) =>
|
color: ${({ primary, yellow, theme }) =>
|
||||||
primary ? theme.white : yellow ? theme.text : theme.background};
|
primary ? theme.white : yellow ? theme.almostBlack : theme.background};
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
font-size: 11px;
|
font-size: 11px;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
|
@ -50,8 +50,8 @@ class Time extends React.Component<Props> {
|
|||||||
if (shorten) {
|
if (shorten) {
|
||||||
content = content
|
content = content
|
||||||
.replace("about", "")
|
.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 (
|
return (
|
||||||
|
Reference in New Issue
Block a user