Skip to content

Commit

Permalink
fix height
Browse files Browse the repository at this point in the history
  • Loading branch information
lifeparticle committed Sep 27, 2023
1 parent 598243a commit c581b9c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ui/src/pages/Text/TextEditor/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const TextEditor: React.FC = () => {
}}
initialValue=""
init={{
height: "calc(100dvh - 135px)",
height: "calc(100dvh - 120px)",
wordcount_countcharacters: true,
menubar: true,
resize: false,
Expand Down
2 changes: 1 addition & 1 deletion ui/src/pages/Tools/Diagramming/diagramming.module.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
.diagramming {
height: calc(100dvh - 110px);
height: calc(100dvh - 90px);
}
5 changes: 4 additions & 1 deletion ui/src/pages/Tools/Diagramming/index.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
import { Excalidraw } from "@excalidraw/excalidraw";
import style from "./diagramming.module.scss";
import { useContext } from "react";
import { DarkModeContext } from "lib/utils/context/DarkModeProvider";

const Diagramming = () => {
const { isDarkMode } = useContext(DarkModeContext);
return (
<div className={style.diagramming}>
<Excalidraw />
<Excalidraw theme={isDarkMode ? "dark" : "light"} />
</div>
);
};
Expand Down

0 comments on commit c581b9c

Please sign in to comment.