From 01c8447d4d90677cd22e54fa4029d4b28aeb1ba6 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Mon, 17 Jul 2023 10:12:31 +0800 Subject: [PATCH] :rotating_light: --- app/src/assets/scss/protyle/_wysiwyg.scss | 2 +- app/src/protyle/render/av/action.ts | 9 --------- app/src/protyle/render/av/cell.ts | 4 ++-- app/src/protyle/render/av/col.ts | 2 +- 4 files changed, 4 insertions(+), 13 deletions(-) diff --git a/app/src/assets/scss/protyle/_wysiwyg.scss b/app/src/assets/scss/protyle/_wysiwyg.scss index 48828af87..ecb9b6c07 100644 --- a/app/src/assets/scss/protyle/_wysiwyg.scss +++ b/app/src/assets/scss/protyle/_wysiwyg.scss @@ -5,7 +5,7 @@ flex-direction: column; box-sizing: border-box; user-select: auto; - overflow-x: auto; + overflow-x: clip; .protyle-breadcrumb__bar { font-size: 14px; diff --git a/app/src/protyle/render/av/action.ts b/app/src/protyle/render/av/action.ts index 40425819b..0550c31f9 100644 --- a/app/src/protyle/render/av/action.ts +++ b/app/src/protyle/render/av/action.ts @@ -191,15 +191,6 @@ export const avContextmenu = (protyle: IProtyle, event: MouseEvent & { detail: a }); } menu.addSeparator(); - if (rowIds.length === 1) { - menu.addItem({ - icon: "iconEdit", - label: window.siyuan.languages.edit, - click() { - - } - }); - } const editAttrSubmenu: IMenu[] = []; rowElement.parentElement.querySelectorAll(".av__row--header .av__cell").forEach((cellElement: HTMLElement) => { editAttrSubmenu.push({ diff --git a/app/src/protyle/render/av/cell.ts b/app/src/protyle/render/av/cell.ts index d66885e1f..90d602e6f 100644 --- a/app/src/protyle/render/av/cell.ts +++ b/app/src/protyle/render/av/cell.ts @@ -347,9 +347,9 @@ const updateCellValue = (protyle: IProtyle, cellElement: HTMLElement, type: TAVC }; if (type === "number") { oldValue.content = parseFloat(oldValue.content as string); - oldValue.isNotEmpty = !!oldValue.content + oldValue.isNotEmpty = !!oldValue.content; inputValue.content = parseFloat(inputValue.content as string); - inputValue.isNotEmpty = !!inputValue.content + inputValue.isNotEmpty = !!inputValue.content; } transaction(protyle, [{ action: "updateAttrViewCell", diff --git a/app/src/protyle/render/av/col.ts b/app/src/protyle/render/av/col.ts index d37b733d3..a1e7f3e0f 100644 --- a/app/src/protyle/render/av/col.ts +++ b/app/src/protyle/render/av/col.ts @@ -236,7 +236,7 @@ export const showColMenu = (protyle: IProtyle, blockElement: HTMLElement, cellEl id, avID, }]); - }) + }); } else { transaction(protyle, [{ action: "addAttrViewCol",