Skip to content

Commit

Permalink
Merge pull request #182 from PeerPrep/elroy-ui-fix
Browse files Browse the repository at this point in the history
fix: fix UI divider between code and panes
  • Loading branch information
sivayogasubramanian authored Nov 9, 2023
2 parents f23cf6d + 65f364f commit 52362c4
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions frontend/src/app/components/code-editor/CodeEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ import * as Y from "yjs";
import Tabs from "../tab/Tabs";
import { fetchProfileUrl } from "@/app/api";

import { BsArrowsExpand } from "react-icons/bs";

const CodeMirror = dynamic(() => import("@uiw/react-codemirror"), {
ssr: false,
loading: () => (
Expand Down Expand Up @@ -208,9 +210,11 @@ const CodeMirrorEditor = ({
}}
/>
<div
className="divider mx-auto w-[90svw] cursor-ns-resize lg:w-full"
className="divider mx-auto w-[90svw] cursor-ns-resize hover:bg-accent lg:w-full"
onMouseDown={handleMouseDown}
/>
>
<BsArrowsExpand className="text-state-100 text-4xl" />
</div>
<Tabs
height={Math.min(window.innerHeight * 0.7 - editorHeight, maxHeight)}
/>
Expand Down

0 comments on commit 52362c4

Please sign in to comment.