Skip to content

AI-native knowledge base & Evernote/Obsidian alternative with instant sync & native MCP. Free on Cloudflare or self-hosted via Docker.

Simplify mobile editor textarea surface

yomaf1d049e3603a
diff --git a/apps/web/src/components/EditorPane.tsx b/apps/web/src/components/EditorPane.tsx
index edbc21da..588292ef 100644
--- a/apps/web/src/components/EditorPane.tsx
+++ b/apps/web/src/components/EditorPane.tsx
@@ -1943,7 +1943,12 @@ export const EditorPane = ({
{(!isMobileViewport || (mobileToolbarOpen && !useMobilePlainTextEditor)) && <EditorToolbar editor={editor} readOnly={effectiveReadOnly} />}
</header>
- <div className="edgeever-editor relative min-h-0 flex-1 overflow-y-auto bg-white">
+ <div
+ className={cn(
+ "edgeever-editor relative min-h-0 flex-1 bg-white",
+ useMobilePlainTextEditor ? "overflow-visible" : "overflow-y-auto"
+ )}
+ >
{useMobilePlainTextEditor ? (
<>
<textarea
@@ -1960,7 +1965,7 @@ export const EditorPane = ({
spellCheck
data-edgeever-mobile-editor="plain-textarea"
aria-label="笔记正文"
- className="block min-h-full w-full resize-none border-0 bg-white px-4 py-3 pr-32 text-base leading-7 text-slate-900 outline-none placeholder:text-slate-400 sm:px-7"
+ className="block min-h-[60dvh] w-full resize-none border border-slate-200 bg-white px-4 py-3 pr-32 text-base leading-7 text-slate-900 outline-none placeholder:text-slate-400 sm:px-7"
placeholder="开始记录..."
style={{ WebkitUserSelect: "text", userSelect: "text", caretColor: "auto" }}
/>
@@ -1986,7 +1991,7 @@ export const EditorPane = ({
)}
</div>
- {useMobilePlainTextEditor && (
+ {false && useMobilePlainTextEditor && (
<div className="fixed left-2 right-2 top-[max(3.5rem,env(safe-area-inset-top))] z-[70] rounded-md border border-amber-200 bg-amber-50/95 p-2 text-[11px] text-slate-800 shadow-lg backdrop-blur sm:hidden">
<div className="flex items-center justify-between gap-2">
<button