diff --git a/package.json b/package.json index 9824427..c7ba199 100644 --- a/package.json +++ b/package.json @@ -16,6 +16,7 @@ }, "dependencies": { "@fontsource-variable/fira-code": "^5.1.0", + "@fontsource/space-mono": "^5.1.1", "@radix-ui/react-dialog": "^1.1.2", "@radix-ui/react-dropdown-menu": "^2.1.2", "@radix-ui/react-label": "^2.1.0", diff --git a/src/components/Editor.tsx b/src/components/Editor.tsx index feb914a..5d874db 100644 --- a/src/components/Editor.tsx +++ b/src/components/Editor.tsx @@ -45,7 +45,7 @@ const EditorView = ({ doc, firstLoad }: { doc: Y.Doc; firstLoad: boolean }) => { editor={editor} className="w-5/6 max-w-screen-xl flex-1" /> -
{ +
{ // Focus the editor at the end when clicking on the empty space editor.commands.focus("end"); }}>
diff --git a/yarn.lock b/yarn.lock index 5559d8b..8489c53 100644 --- a/yarn.lock +++ b/yarn.lock @@ -373,6 +373,11 @@ resolved "https://registry.npmjs.org/@fontsource-variable/fira-code/-/fira-code-5.1.0.tgz" integrity sha512-fwJbJLvyZ2BhgBSPYCNsrQ6IFQTpRu9GWXY8N20wHTpbhV0Ro5QJihiZV060Ay3kVR6IVH/oSVe/cr7Ube28gg== +"@fontsource/space-mono@^5.1.1": + version "5.1.1" + resolved "https://registry.yarnpkg.com/@fontsource/space-mono/-/space-mono-5.1.1.tgz#578ca4313f669eac19a98ea0c64b926005a980fe" + integrity sha512-v72P4frEQhldHTKQv0GqOF2JRRGhMrPAIj50v88qmW1aJW1SJAvjMtFOk/3D+L+dQM0fP2A1ZVzVkDbv8JGf7A== + "@humanfs/core@^0.19.1": version "0.19.1" resolved "https://registry.npmjs.org/@humanfs/core/-/core-0.19.1.tgz"