From f74b7983f297be6a991e4d7d4e360626689f4fbc Mon Sep 17 00:00:00 2001 From: wuyiping0628 <1106773985@qq.com> Date: Mon, 16 Mar 2026 02:39:36 -0700 Subject: [PATCH] feat: resolve the issue of the image toolbar border exceeding the limit after clicking on the image --- .../fluent-editor/src/modules/custom-image/blot-formatter.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/fluent-editor/src/modules/custom-image/blot-formatter.ts b/packages/fluent-editor/src/modules/custom-image/blot-formatter.ts index fb6697a9..b0cd369c 100644 --- a/packages/fluent-editor/src/modules/custom-image/blot-formatter.ts +++ b/packages/fluent-editor/src/modules/custom-image/blot-formatter.ts @@ -130,8 +130,8 @@ export class BlotFormatter { display: 'block', left: `${specRect.left - parentRect.left - 1 + parent.scrollLeft}px`, top: `${specRect.top - parentRect.top + parent.scrollTop}px`, - width: `${specRect.width}px`, - height: `${specRect.height}px`, + width: `${Math.min(specRect.width, parentRect.width)}px`, + height: `${Math.min(specRect.height, parentRect.height)}px`, }) }