AI-native knowledge base & Evernote/Obsidian alternative with instant sync & native MCP. Free on Cloudflare or self-hosted via Docker.
HTML ai-agentcloudflarecloudflare-d1cloudflare-r2cloudflare-workersdockerelectronevernoteevernote-alternativeknowledge-basemcpnote-takingobsidian-alternativeoffline-firstpersonal-knowledge-basepwaself-hostedsqlitetiptapweb-clipper
feat(web): make polaroid image card frame the default across all themes
tianma-iffd53f310841a
diff --git a/apps/web/src/lib/wechat-copy.test.mjs b/apps/web/src/lib/wechat-copy.test.mjsindex 2ac3bb99..31a47ae6 100644--- a/apps/web/src/lib/wechat-copy.test.mjs+++ b/apps/web/src/lib/wechat-copy.test.mjs@@ -122,8 +122,15 @@ describe("preparePublishArticle", () => {"<ul data-type=\"taskList\"><li data-checked=\"true\"><label><input type=\"checkbox\" checked></label><div><p>已完成</p></div></li></ul>","<span data-type=\"inline-math\" data-latex=\"E = mc^2\"></span>","<p>#memo 话题</p>",+ "<img src=\"https://example.com/test.png\" alt=\"pic\">",].join(""));+ const img = root.querySelector("img");+ expect(css(img)).toContain("border-radius:12px");+ expect(css(img)).toContain("box-shadow:0 4px 12px -2px rgba(0,0,0,0.08)");+ expect(css(img)).toContain("padding:6px");+ expect(css(img)).not.toContain("#b8dfd0");+const quote = root.querySelector("blockquote");expect(css(quote)).toContain("background:#f3f5f7");expect(css(quote)).toContain("color:#3d4450");diff --git a/apps/web/src/lib/wechat-copy.ts b/apps/web/src/lib/wechat-copy.tsindex b501e7ff..b4f1eeef 100644--- a/apps/web/src/lib/wechat-copy.ts+++ b/apps/web/src/lib/wechat-copy.ts@@ -111,9 +111,8 @@ const applyLegacyWeChatStyles = (? `margin: 0 0 20px; padding: 14px 18px; overflow: hidden; border: 0; border-left: 3px solid ${accent}; border-radius: 0 8px 8px 0; background: #f9fafb; color: #0f172a; font-family: ${PUBLISH_MONO}; font-size: ${codeSize}; line-height: 1.75; text-align: left; white-space: pre-wrap;`: `margin: 0 0 16px; padding: 14px 16px; overflow: hidden; border: 1px solid #e4e4e4; border-radius: 8px; background: #fafafa; color: #0f172a; font-family: ${PUBLISH_MONO}; font-size: ${codeSize}; line-height: 1.6; text-align: left; white-space: pre-wrap;`;const thStyle = `padding: 8px 13px; border: 1px solid #e5e5e5; background: ${thBackground}; color: ${thColor}; font-weight: 700; font-size: 13px; text-align: left;`;- const imgStyle = proseStyle.headingStyle === "numbered"- ? "display: block; max-width: 100%; height: auto; margin: 16px 0; padding: 6px; box-sizing: border-box; background: #ffffff; border: 1px solid #e5e7eb; border-radius: 12px; box-shadow: 0 4px 12px -2px rgba(0,0,0,0.08);"- : "display: block; max-width: 100%; height: auto; margin: 16px 0; border: 1px solid #b8dfd0; border-radius: 8px;";+ const imgStyle =+ "display: block; max-width: 100%; height: auto; margin: 16px 0; padding: 6px; box-sizing: border-box; background: #ffffff; border: 1px solid #e5e7eb; border-radius: 12px; box-shadow: 0 4px 12px -2px rgba(0,0,0,0.08);";const paragraphBottom = proseStyle.headingStyle === "numbered" ? "16px" : PARAGRAPH_SPACING;const styles: Record<string, string> = {p: `margin: 0 0 ${paragraphBottom}; padding: 0; ${textStyle}`,diff --git a/apps/web/src/styles/globals.css b/apps/web/src/styles/globals.cssindex afeb16d6..1695b530 100644--- a/apps/web/src/styles/globals.css+++ b/apps/web/src/styles/globals.css@@ -1975,15 +1975,27 @@ html[data-edgeever-extension-theme] .edgeever-memo-divider {background: transparent;}-.ProseMirror img {+.ProseMirror img:not(.ProseMirror-separator),+.markdown-content img {display: block;max-width: 100%;max-height: min(68vh, 720px);height: auto;object-fit: contain;margin: 1rem 0;- border: 1px solid hsl(var(--border));- border-radius: 8px;+ box-sizing: border-box;+ background: #ffffff;+ border: 1px solid #e5e7eb;+ border-radius: 12px;+ padding: 6px;+ box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.08);+}++:root.dark .ProseMirror img:not(.ProseMirror-separator),+:root.dark .markdown-content img {+ background: rgba(255, 255, 255, 0.04);+ border-color: rgba(255, 255, 255, 0.12);+ box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.35);}.ProseMirror img.ProseMirror-selectednode {@@ -2286,6 +2298,11 @@ html[data-edgeever-extension-theme] .edgeever-memo-divider {max-height: 18rem;margin: 0;object-fit: cover;+ padding: 0;+ border: 0;+ border-radius: 8px;+ box-shadow: none;+ background: transparent;}/* Height fit keeps the full source image inside a consistent gallery tile. */diff --git a/apps/web/src/styles/note-html-export.css b/apps/web/src/styles/note-html-export.cssindex d61b946f..bbb9f310 100644--- a/apps/web/src/styles/note-html-export.css+++ b/apps/web/src/styles/note-html-export.css@@ -218,7 +218,21 @@ body {padding: 0;}-.edgeever-html-content img,+.edgeever-html-content img {+ display: block;+ width: auto;+ max-width: 100%;+ height: auto;+ max-height: 80vh;+ object-fit: contain;+ box-sizing: border-box;+ background: #ffffff;+ border: 1px solid #e5e7eb;+ border-radius: 12px;+ padding: 6px;+ box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.08);+}+.edgeever-html-mermaid svg {display: block;width: auto;diff --git a/apps/web/src/styles/note-print.css b/apps/web/src/styles/note-print.cssindex 77d05f8e..7ae18f49 100644--- a/apps/web/src/styles/note-print.css+++ b/apps/web/src/styles/note-print.css@@ -317,8 +317,12 @@height: auto;max-height: 220mm;margin: 1rem 0;- border: 1px solid #b8dfd0;- border-radius: 8px;+ box-sizing: border-box;+ background: #ffffff;+ border: 1px solid #e5e7eb;+ border-radius: 12px;+ padding: 6px;+ box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.08);object-fit: contain;}diff --git a/apps/web/src/styles/note-prose-styles.css b/apps/web/src/styles/note-prose-styles.cssindex 69ae1f48..0a7e58ab 100644--- a/apps/web/src/styles/note-prose-styles.css+++ b/apps/web/src/styles/note-prose-styles.css@@ -239,15 +239,6 @@color: #e5e7eb !important;}-/* Image card frame in numbered magazine mode */-.edgeever-editor[data-note-heading-style="numbered"] .ProseMirror img:not(.ProseMirror-separator),-.edgeever-editor[data-note-heading-style="numbered"] .markdown-content img {- background: #ffffff;- border-radius: 12px;- padding: 6px;- border: 1px solid #e5e7eb;- box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.08);-}/* 3. Heading style: Bottom rule ("underline") */.edgeever-editor[data-note-heading-style="underline"] .ProseMirror h2,