fix: stretch editor on smaller screens

This commit is contained in:
thecodrr
2021-01-07 14:07:25 +05:00
parent 1bf2d9bba7
commit 2d2fc4033e

View File

@@ -126,7 +126,10 @@ function Editor(props) {
<Animated.Flex
variant="columnFill"
className="editor"
sx={{ mx: [0, 0, editorMargins], alignSelf: "center" }}
sx={{
mx: [0, 0, editorMargins],
alignSelf: ["stretch", "stretch", "center"],
}}
animate={{
marginRight: isFocusMode ? "25%" : editorMargins,
marginLeft: isFocusMode ? "25%" : editorMargins,