diff --git a/src-tauri/Cargo.lock b/src-tauri/Cargo.lock index 34f3c6d..cca3b24 100644 --- a/src-tauri/Cargo.lock +++ b/src-tauri/Cargo.lock @@ -4713,7 +4713,7 @@ checksum = "3e2e65a1a2e43cfcb47a895c4c8b10d1f4a61097f9f254f183aee60cad9c651d" [[package]] name = "margin-app" -version = "0.1.6" +version = "0.1.7" dependencies = [ "base64 0.22.1", "fontdb", diff --git a/src/components/EditorView.tsx b/src/components/EditorView.tsx index 3ccb8ca..1c9580e 100644 --- a/src/components/EditorView.tsx +++ b/src/components/EditorView.tsx @@ -1,4 +1,4 @@ -import { useCallback, useEffect, useState } from "react"; +import { useCallback, useEffect, useLayoutEffect, useRef, useState } from "react"; import type { Editor as TiptapEditor } from "@tiptap/react"; import { Sidebar } from "./Sidebar"; import { Dock } from "./Dock"; @@ -258,15 +258,13 @@ export function EditorView() {
{eyebrow}
- setChapterTitle(chapter.id, e.target.value)} + disabled={!!chapter.noTitle} + onChange={(value) => setChapterTitle(chapter.id, value)} /> {(chapter.noTitle || !chapter.title.trim()) && (