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',