From e8d8aa8f46a792aa7d82e712408c41cec7fe5b20 Mon Sep 17 00:00:00 2001 From: Anthony Stirling <77850077+Frooodle@users.noreply.github.com> Date: Fri, 14 Nov 2025 16:27:30 +0000 Subject: [PATCH] text edit fix --- .../components/tools/pdfTextEditor/PdfTextEditorView.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/proprietary/components/tools/pdfTextEditor/PdfTextEditorView.tsx b/frontend/src/proprietary/components/tools/pdfTextEditor/PdfTextEditorView.tsx index 734a0f090..3b0d1b8e3 100644 --- a/frontend/src/proprietary/components/tools/pdfTextEditor/PdfTextEditorView.tsx +++ b/frontend/src/proprietary/components/tools/pdfTextEditor/PdfTextEditorView.tsx @@ -2168,7 +2168,8 @@ const selectionToolbarPosition = useMemo(() => { // The renderGroupContainer wrapper adds 4px horizontal padding (2px left + 2px right) // We need to add this to the container width to compensate, so the inner content // has the full PDF-defined width available for text - const WRAPPER_HORIZONTAL_PADDING = 4; + // Add extra padding to prevent text from being too tight and wrapping prematurely + const WRAPPER_HORIZONTAL_PADDING = 10; const containerStyle: React.CSSProperties = { position: 'absolute',