mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-07 07:33:52 +02:00
Improve layout of media albums with likes.
This commit is contained in:
parent
b45a696b5d
commit
b3c198f0d2
2 changed files with 9 additions and 2 deletions
|
@ -1192,6 +1192,9 @@ void Message::draw(Painter &p, const PaintContext &context) const {
|
|||
}
|
||||
if (!mediaOnBottom && (!_viewButton || !reactionsInBubble)) {
|
||||
localMediaBottom -= st::msgPadding.bottom();
|
||||
if (mediaDisplayed) {
|
||||
localMediaBottom -= st::mediaInBubbleSkip;
|
||||
}
|
||||
}
|
||||
if (check) {
|
||||
localMediaBottom -= check->height();
|
||||
|
|
|
@ -172,7 +172,9 @@ QSize GroupedMedia::countOptimalSize() {
|
|||
_parts[i].sides = item.sides;
|
||||
}
|
||||
|
||||
if (_mode == Mode::Column && _parts.back().item->emptyText()) {
|
||||
if (_mode == Mode::Column
|
||||
&& isBubbleBottom()
|
||||
&& _parts.back().item->emptyText()) {
|
||||
const auto item = _parent->data();
|
||||
const auto msgsigned = item->Get<HistoryMessageSigned>();
|
||||
const auto views = item->Get<HistoryMessageViews>();
|
||||
|
@ -236,7 +238,9 @@ QSize GroupedMedia::countCurrentSize(int newWidth) {
|
|||
accumulate_max(newHeight, top + height);
|
||||
}
|
||||
}
|
||||
if (_mode == Mode::Column && _parts.back().item->emptyText()) {
|
||||
if (_mode == Mode::Column
|
||||
&& isBubbleBottom()
|
||||
&& _parts.back().item->emptyText()) {
|
||||
const auto item = _parent->data();
|
||||
const auto msgsigned = item->Get<HistoryMessageSigned>();
|
||||
const auto views = item->Get<HistoryMessageViews>();
|
||||
|
|
Loading…
Add table
Reference in a new issue