From a7ceda642b94cd8b35c95575e2e5f1061dada7ea Mon Sep 17 00:00:00 2001 From: mapxn <16299874+mapxn@users.noreply.github.com> Date: Mon, 30 Nov 2026 09:47:23 +0800 Subject: [PATCH] chore: checkpoint bS6FJ1YoyENo_o6dHk16e --- web/src/index.css | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/web/src/index.css b/web/src/index.css index 8382f3f..c52ff1c 100644 --- a/web/src/index.css +++ b/web/src/index.css @@ -1734,6 +1734,15 @@ html[data-theme="sketch"].dark { pointer-events: none; } +/* + * 代码块是 NodeView 块:Placeholder 的节点装饰把 is-empty 挂在外层 .code-block wrapper 上, + * 上面的浮动伪元素会落在块最上方、压住块头行(语言名/语言选择器)。块头本身已表明块类型, + * 空代码块不需要文档级占位提示,这里直接抑制该伪元素(普通空段落保持零变化)。 + */ +.wiki-content .code-block.is-empty::before { + display: none; +} + .wiki-content .ProseMirror-selectednode { outline: 2px solid var(--ring); outline-offset: 2px;