From 7715ee0b4e1dba4f87524ad4c03df259f8e54181 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Sun, 22 Feb 2026 13:44:56 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/17051 --- app/src/assets/scss/component/_text-field.scss | 5 +++++ app/src/menus/protyle.ts | 8 ++++---- app/src/protyle/render/av/action.ts | 4 ++-- 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/app/src/assets/scss/component/_text-field.scss b/app/src/assets/scss/component/_text-field.scss index 938ea0698..3c4e9dc25 100644 --- a/app/src/assets/scss/component/_text-field.scss +++ b/app/src/assets/scss/component/_text-field.scss @@ -29,6 +29,11 @@ padding: 0 4px; } + &--size { + padding: 2px 8px; + width: 64px; + } + &--text { box-shadow: 0 0 0; } diff --git a/app/src/menus/protyle.ts b/app/src/menus/protyle.ts index ecc2481ee..62983a0ea 100644 --- a/app/src/menus/protyle.ts +++ b/app/src/menus/protyle.ts @@ -2343,7 +2343,7 @@ export const tableMenu = (protyle: IProtyle, nodeElement: Element, cellElement: id: "insertRowAbove", icon: "iconBefore", label: `
-${window.siyuan.languages.insertRowBefore.replace("${x}", ``)} +${window.siyuan.languages.insertRowBefore.replace("${x}", ``)}
`, accelerator: window.siyuan.config.keymap.editor.table.insertRowAbove.custom, bind(element: HTMLElement) { @@ -2368,7 +2368,7 @@ ${window.siyuan.languages.insertRowBefore.replace("${x}", ` -${window.siyuan.languages.insertRowAfter.replace("${x}", ``)} +${window.siyuan.languages.insertRowAfter.replace("${x}", ``)} `, accelerator: window.siyuan.config.keymap.editor.table.insertRowBelow.custom, bind(element: HTMLElement) { @@ -2394,7 +2394,7 @@ ${window.siyuan.languages.insertRowAfter.replace("${x}", ` -${window.siyuan.languages.insertColumnLeft1.replace("${x}", ``)} +${window.siyuan.languages.insertColumnLeft1.replace("${x}", ``)} `, accelerator: window.siyuan.config.keymap.editor.table.insertColumnLeft.custom, bind(element: HTMLElement) { @@ -2420,7 +2420,7 @@ ${window.siyuan.languages.insertColumnLeft1.replace("${x}", ` -${window.siyuan.languages.insertColumnRight1.replace("${x}", ``)} +${window.siyuan.languages.insertColumnRight1.replace("${x}", ``)} `, accelerator: window.siyuan.config.keymap.editor.table.insertColumnRight.custom, bind(element: HTMLElement) { diff --git a/app/src/protyle/render/av/action.ts b/app/src/protyle/render/av/action.ts index 173fe8409..030ab7cb3 100644 --- a/app/src/protyle/render/av/action.ts +++ b/app/src/protyle/render/av/action.ts @@ -625,7 +625,7 @@ export const avContextmenu = (protyle: IProtyle, rowElement: HTMLElement, positi id: avType === "table" ? "insertRowBefore" : "insertItemBefore", icon: "iconBefore", label: `
-${window.siyuan.languages[avType === "table" ? "insertRowBefore" : "insertItemBefore"].replace("${x}", ``)} +${window.siyuan.languages[avType === "table" ? "insertRowBefore" : "insertItemBefore"].replace("${x}", ``)}
`, bind(element) { const inputElement = element.querySelector("input"); @@ -660,7 +660,7 @@ ${window.siyuan.languages[avType === "table" ? "insertRowBefore" : "insertItemBe id: avType === "table" ? "insertRowAfter" : "insertItemAfter", icon: "iconAfter", label: `
-${window.siyuan.languages[avType === "table" ? "insertRowAfter" : "insertItemAfter"].replace("${x}", ``)} +${window.siyuan.languages[avType === "table" ? "insertRowAfter" : "insertItemAfter"].replace("${x}", ``)}
`, bind(element) { const inputElement = element.querySelector("input");