diff --git a/packages/ui/src/components/chat/composer/editor/theme.ts b/packages/ui/src/components/chat/composer/editor/theme.ts index ccc9a933..80801782 100644 --- a/packages/ui/src/components/chat/composer/editor/theme.ts +++ b/packages/ui/src/components/chat/composer/editor/theme.ts @@ -20,6 +20,8 @@ export const COMPOSER_EDITOR_THEME_SPEC = { '&.cm-focused': { outline: 'none' }, '.cm-content': { padding: '0', + // Keep the drawn empty-document cursor inside the scroller's horizontal clip. + paddingInlineStart: '1px', fontFamily: 'inherit', fontSize: 'inherit', lineHeight: 'inherit',