Skip to content

Commit

Permalink
feat: Updated packages/components/src/components/C
Browse files Browse the repository at this point in the history
  • Loading branch information
sweep-ai[bot] authored Jan 3, 2024
1 parent 82a7c04 commit c10f4c2
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
import { EditorView, hoverTooltip, repositionTooltips } from "@codemirror/view";

const MIN_WIDTH = '200px';
const MAX_WIDTH = '600px';
import { FC, useEffect } from "react";
import { createRoot } from "react-dom/client";

Expand All @@ -18,7 +21,7 @@ const HoverTooltip: FC<{ hover: Hover; view: EditorView }> = ({
});

return (
<div className="border rounded-sm shadow-lg min-w-[200px] max-w-[600px] px-2">
<div className={`border rounded-sm shadow-lg min-w-[${MIN_WIDTH}] max-w-[${MAX_WIDTH}] px-2`}>
<FnDocumentation documentation={hover} />
</div>
);
Expand Down

0 comments on commit c10f4c2

Please sign in to comment.