fix: nested link positions for RTL titles in sidebar (#2272)

This commit is contained in:
Farzad
2021-07-04 23:38:05 +04:30
committed by GitHub
parent bb58db507d
commit 7e139ca8f7
2 changed files with 5 additions and 1 deletions

View File

@@ -65,6 +65,7 @@ function EditableTitle({ title, onSubmit, canUpdate }: Props) {
{isEditing ? (
<form onSubmit={handleSave}>
<Input
dir="auto"
type="text"
value={value}
onKeyDown={handleKeyDown}

View File

@@ -84,7 +84,7 @@ function SidebarLink(
ref={ref}
>
{icon && <IconWrapper>{icon}</IconWrapper>}
<Label dir="auto">{label}</Label>
<Label>{label}</Label>
</Link>
{menu && <Actions showActions={showActions}>{menu}</Actions>}
</>
@@ -176,6 +176,9 @@ const Label = styled.div`
width: 100%;
max-height: 4.8em;
line-height: 1.6;
* {
unicode-bidi: plaintext;
}
`;
export default withRouter(withTheme(React.forwardRef(SidebarLink)));