Fixed width of name text in replies with block quote icon.

This commit is contained in:
23rd 2024-01-02 17:49:41 +03:00
parent 5933535c9b
commit cee2961632
1 changed files with 5 additions and 1 deletions

View File

@ -732,7 +732,11 @@ void Reply::paint(
const auto textw = w
- st::historyReplyPadding.left()
- st::historyReplyPadding.right();
const auto namew = textw - previewSkip;
const auto namew = textw
- previewSkip
- (_hasQuoteIcon
? st::messageTextStyle.blockquote.icon.width()
: 0);
auto firstLineSkip = _nameTwoLines ? 0 : previewSkip;
if (namew > 0) {
p.setPen(!inBubble