Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: https://github.com/siyuan-note/siyuan/issues/17051

Vanessab0116fb094bb
diff --git a/app/appearance/langs/zh_CN.json b/app/appearance/langs/zh_CN.json
index 524b6c7b2f..51ee614050 100644
--- a/app/appearance/langs/zh_CN.json
+++ b/app/appearance/langs/zh_CN.json
@@ -1,5 +1,7 @@
{
"location": "位置",
+ "insertColumnLeft1": "在左边插入${x}列",
+ "insertColumnRight1": "在右边插入${x}列",
"noSplitScreenWhenOpenTab": "打开页签时不分屏",
"noSplitScreenWhenOpenTabTip": "打开搜索、PDF 等页签时不自动分屏",
"useChrome": "仅支持在基于 Chromium 内核的浏览器(比如 Chrome/Edge)中使用,使用其他浏览器会遇到无法解决的兼容性问题",
diff --git a/app/src/menus/protyle.ts b/app/src/menus/protyle.ts
index 5be25eae60..45a04f978a 100644
--- a/app/src/menus/protyle.ts
+++ b/app/src/menus/protyle.ts
@@ -2387,7 +2387,9 @@ export const tableMenu = (protyle: IProtyle, nodeElement: Element, cellElement:
insertMenus.push({
id: "insertRowAbove",
icon: "iconBefore",
- label: window.siyuan.languages.insertRowAbove,
+ label: `<div class="fn__flex" style="align-items: center;">
+${window.siyuan.languages.insertRowBefore.replace("${x}", `<span class="fn__space"></span><input style="width:64px" type="number" step="1" min="1" value="1" placeholder="${window.siyuan.languages.enterKey}" class="b3-text-field"><span class="fn__space"></span>`)}
+</div>`,
accelerator: window.siyuan.config.keymap.editor.table.insertRowAbove.custom,
click: () => {
insertRowAbove(protyle, range, cellElement, nodeElement);