Remove additional padding in shared contacts.
This commit is contained in:
parent
a502cbc06e
commit
1792bed721
|
@ -147,15 +147,6 @@ QSize Contact::countOptimalSize() {
|
||||||
accumulate_max(maxWidth, tleft + _name.maxWidth() + tright);
|
accumulate_max(maxWidth, tleft + _name.maxWidth() + tright);
|
||||||
accumulate_min(maxWidth, st::msgMaxWidth);
|
accumulate_min(maxWidth, st::msgMaxWidth);
|
||||||
auto minHeight = st.padding.top() + st.thumbSize + st.padding.bottom();
|
auto minHeight = st.padding.top() + st.thumbSize + st.padding.bottom();
|
||||||
if (_userId) {
|
|
||||||
const auto msgsigned = item->Get<HistoryMessageSigned>();
|
|
||||||
const auto views = item->Get<HistoryMessageViews>();
|
|
||||||
if ((msgsigned && !msgsigned->isAnonymousRank)
|
|
||||||
|| (views
|
|
||||||
&& (views->views.count >= 0 || views->replies.count > 0))) {
|
|
||||||
minHeight += st::msgDateFont->height - st::msgDateDelta.y();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (!isBubbleTop()) {
|
if (!isBubbleTop()) {
|
||||||
minHeight -= st::msgFileTopMinus;
|
minHeight -= st::msgFileTopMinus;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue