From c266c8527ad49a3f0729ffbba899b64cea7af700 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Tue, 7 Nov 2023 11:00:33 +0800 Subject: [PATCH] :art: https://ld246.com/article/1699151270454/comment/1699318121772#comments --- app/src/protyle/render/av/cell.ts | 2 +- app/src/protyle/wysiwyg/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/protyle/render/av/cell.ts b/app/src/protyle/render/av/cell.ts index ba0f08ae7..14fac4a92 100644 --- a/app/src/protyle/render/av/cell.ts +++ b/app/src/protyle/render/av/cell.ts @@ -401,7 +401,7 @@ export const popTextCell = (protyle: IProtyle, cellElements: HTMLElement[], type } cellRect = cellElements[0].getBoundingClientRect(); let html = ""; - const style = `style="position:absolute;left: ${cellRect.left}px;top: ${cellRect.top}px;width:${Math.max(cellRect.width, 100)}px;height: ${cellRect.height}px"`; + const style = `style="position:absolute;left: ${cellRect.left}px;top: ${cellRect.top}px;width:${Math.max(cellRect.width, 58)}px;height: ${cellRect.height}px"`; if (["text", "url", "email", "phone", "block", "template"].includes(type)) { html = ``; } else if (type === "number") { diff --git a/app/src/protyle/wysiwyg/index.ts b/app/src/protyle/wysiwyg/index.ts index 41bf99e87..55634d49a 100644 --- a/app/src/protyle/wysiwyg/index.ts +++ b/app/src/protyle/wysiwyg/index.ts @@ -383,7 +383,7 @@ export class WYSIWYG { const dragColId = dragElement.getAttribute("data-col-id"); let newWidth: string; documentSelf.onmousemove = (moveEvent: MouseEvent) => { - newWidth = Math.max(oldWidth + (moveEvent.clientX - event.clientX), 100) + "px"; + newWidth = Math.max(oldWidth + (moveEvent.clientX - event.clientX), 58) + "px"; dragElement.parentElement.parentElement.querySelectorAll(".av__row, .av__row--footer").forEach(item => { (item.querySelector(`[data-col-id="${dragColId}"]`) as HTMLElement).style.width = newWidth; });