mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-06 15:13:57 +02:00
Fixed overlapping right badges on ellipsis in dialogs list.
This commit is contained in:
parent
738aff9c4f
commit
aad1296829
1 changed files with 4 additions and 1 deletions
|
@ -365,7 +365,10 @@ void MessageView::paint(
|
||||||
if (!_imagesCache.empty()) {
|
if (!_imagesCache.empty()) {
|
||||||
rect.setLeft(rect.x() + st::dialogsMiniPreviewRight);
|
rect.setLeft(rect.x() + st::dialogsMiniPreviewRight);
|
||||||
}
|
}
|
||||||
if (!rect.isEmpty()) {
|
// Style of _textCache.
|
||||||
|
static const auto ellipsisWidth = st::dialogsTextStyle.font->width(
|
||||||
|
kQEllipsis);
|
||||||
|
if (rect.width() > ellipsisWidth) {
|
||||||
_textCache.draw(p, {
|
_textCache.draw(p, {
|
||||||
.position = rect.topLeft(),
|
.position = rect.topLeft(),
|
||||||
.availableWidth = rect.width(),
|
.availableWidth = rect.width(),
|
||||||
|
|
Loading…
Add table
Reference in a new issue