RTL updates (#2416)

* Update a bunch of icons to be mirrored in RTL

* Fix RTL layout issues in in zen mode and collaboration

* Small change to the shortcuts dialog to make isRTL unnecessary

* Tweaks to alignment in RTL
This commit is contained in:
Jed Fox
2020-11-25 18:21:33 -05:00
committed by GitHub
parent fec48060f7
commit 8d479ab238
6 changed files with 63 additions and 28 deletions

View File

@ -37,7 +37,6 @@ const Shortcut = (props: {
shortcuts: string[];
isOr: boolean;
}) => {
const isRTL = document.documentElement.getAttribute("dir") === "rtl";
return (
<div className="ShorcutsDialog-shortcut">
<div
@ -60,8 +59,7 @@ const Shortcut = (props: {
display: "flex",
flex: "0 0 auto",
justifyContent: "flex-end",
marginLeft: isRTL ? "0em" : "auto",
marginRight: isRTL ? "auto" : "0em",
marginInlineStart: "auto",
minWidth: "30%",
}}
>