Improved calculation of text and timestamp in chat bubble.