[chore] minor fixes

Signed-off-by: alok8bb <alok8bb@gmail.com>
This commit is contained in:
alok8bb 2022-12-04 22:24:55 +05:30
parent fd20917409
commit 93b6fab121
No known key found for this signature in database
3 changed files with 10 additions and 3 deletions

View File

@ -11,12 +11,11 @@ const BottomBar: FunctionComponent<propTypes> = props => {
display: "flex", display: "flex",
alignItems: "center", alignItems: "center",
justifyContent: "space-between", justifyContent: "space-between",
paddingInline: "20px", paddingInline: "15px",
}} }}
className="BottomBar"> className="BottomBar">
<a <a
style={{ style={{
fontSize: "1.1rem",
color: "#D9F8C4", color: "#D9F8C4",
cursor: "pointer", cursor: "pointer",
textDecoration: "none", textDecoration: "none",
@ -72,7 +71,7 @@ const linkStyle = {
const listStyle = { const listStyle = {
marginInline: "10px", marginInline: "10px",
listStyle: "none", listStyle: "none",
fontSize: "1rem", fontSize: "2vh",
}; };
const Separator = () => ( const Separator = () => (

View File

@ -1,3 +1,4 @@
import { EditorView } from "@codemirror/view";
import CodeMirror from "@uiw/react-codemirror"; import CodeMirror from "@uiw/react-codemirror";
import { FunctionComponent } from "react"; import { FunctionComponent } from "react";
import Theme from "./EditorTheme"; import Theme from "./EditorTheme";
@ -24,6 +25,7 @@ const Editor: FunctionComponent<propTypes> = props => {
editable={props.editable} editable={props.editable}
readOnly={props.readonly} readOnly={props.readonly}
theme={Theme} theme={Theme}
extensions={[EditorView.lineWrapping]}
/> />
); );
}; };

View File

@ -12,4 +12,10 @@ body {
#root { #root {
height: 100vh; height: 100vh;
}
@media screen and (max-width: 600px) {
#root {
height: 93vh;
}
} }