mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-29 13:47:47 +00:00
Fix file media with views counter layout.
This commit is contained in:
parent
dcf70b2847
commit
7f73cc3085
@ -1256,7 +1256,9 @@ QSize HistoryDocument::countOptimalSize() {
|
|||||||
} else {
|
} else {
|
||||||
minHeight = st::msgFilePadding.top() + st::msgFileSize + st::msgFilePadding.bottom();
|
minHeight = st::msgFilePadding.top() + st::msgFileSize + st::msgFilePadding.bottom();
|
||||||
}
|
}
|
||||||
if (!captioned && (item->Has<HistoryMessageSigned>() || _parent->displayEditedBadge())) {
|
if (!captioned && (item->Has<HistoryMessageSigned>()
|
||||||
|
|| item->Has<HistoryMessageViews>()
|
||||||
|
|| _parent->displayEditedBadge())) {
|
||||||
minHeight += st::msgDateFont->height - st::msgDateDelta.y();
|
minHeight += st::msgDateFont->height - st::msgDateDelta.y();
|
||||||
}
|
}
|
||||||
if (!isBubbleTop()) {
|
if (!isBubbleTop()) {
|
||||||
@ -3019,7 +3021,8 @@ QSize HistoryContact::countOptimalSize() {
|
|||||||
auto minHeight = 0;
|
auto minHeight = 0;
|
||||||
if (_userId) {
|
if (_userId) {
|
||||||
minHeight = st::msgFileThumbPadding.top() + st::msgFileThumbSize + st::msgFileThumbPadding.bottom();
|
minHeight = st::msgFileThumbPadding.top() + st::msgFileThumbSize + st::msgFileThumbPadding.bottom();
|
||||||
if (item->Has<HistoryMessageSigned>()) {
|
if (item->Has<HistoryMessageSigned>()
|
||||||
|
|| item->Has<HistoryMessageViews>()) {
|
||||||
minHeight += st::msgDateFont->height - st::msgDateDelta.y();
|
minHeight += st::msgDateFont->height - st::msgDateDelta.y();
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user