When the text in the selection is long enough to reach the selection caret, the caret is overlapping the text making it unreadable. Adding a gap between the end of the text and the caret to prevent any text overlapping. Task-3267526 Forward-port-of: https://github.com/odoo/odoo/pull/118059 X-original-commit: 717bba692d7167dbcd651299e84432dcecf13ab4 Part-of: odoo/odoo#119099