Fix: Support for DateDivider for RTL

This commit is contained in:
nizune 2021-07-08 21:01:21 +02:00
parent 2f60013935
commit ccb7499c2a
2 changed files with 10 additions and 10 deletions

View file

@ -12,9 +12,10 @@ const Base = styled.div<{ unread?: boolean }>`
time {
margin-top: -2px;
font-size: 0.6875rem;
line-height: 0.6875rem;
padding: 2px 5px 2px 0;
font-size: .6875rem;
line-height: .6875rem;
padding: 2px 0 2px 0;
padding-inline-end: 5px;
color: var(--tertiary-foreground);
background: var(--primary-background);
}

View file

@ -10,7 +10,7 @@ import {
LeftArrowAlt,
Trash,
} from "@styled-icons/boxicons-regular";
import { Cog } from "@styled-icons/boxicons-solid";
import { Cog, UserVoice } from "@styled-icons/boxicons-solid";
import { useHistory } from "react-router-dom";
import {
Attachment,
@ -924,16 +924,13 @@ function ContextMenus(props: Props) {
<Text id={`app.status.invisible`} />
</MenuItem>
<LineDivider />
<div className="header">
<div className="main">
<MenuItem
data={{ action: "set_status" }}
disabled={!isOnline}>
<UserVoice size={18} />
<Text
id={`app.context_menu.custom_status`}
/>
</MenuItem>
</div>
{client.user!.status?.text && (
<IconButton>
<MenuItem data={{ action: "clear_status" }}>
@ -941,7 +938,9 @@ function ContextMenus(props: Props) {
</MenuItem>
</IconButton>
)}
</div>
</MenuItem>
</>
)}
</ContextMenuWithData>