Fix albums with wide captions.

This commit is contained in:
John Preston 2024-06-01 21:53:26 +04:00
parent c1b95afd88
commit b7f165a259
2 changed files with 5 additions and 0 deletions

View File

@ -801,6 +801,10 @@ QPoint GroupedMedia::resolveCustomInfoRightBottom() const {
return QPoint(width() - skipx, height() - skipy);
}
bool GroupedMedia::enforceBubbleWidth() const {
return _mode == Mode::Grid;
}
bool GroupedMedia::computeNeedBubble() const {
Expects(_mode == Mode::Column || _captionItem.has_value());

View File

@ -96,6 +96,7 @@ public:
bool customHighlight() const override {
return true;
}
bool enforceBubbleWidth() const override;
void stopAnimation() override;
void checkAnimation() override;