mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-06 15:13:57 +02:00
Fix layout for the log entries of caption edits.
This commit is contained in:
parent
5a1d52f82e
commit
20efa47126
1 changed files with 7 additions and 0 deletions
|
@ -3319,6 +3319,13 @@ void HistoryWebPage::initDimensions() {
|
||||||
} else if (_data->siteName == qstr("Instagram")) {
|
} else if (_data->siteName == qstr("Instagram")) {
|
||||||
opts = &_instagramDescriptionOptions;
|
opts = &_instagramDescriptionOptions;
|
||||||
}
|
}
|
||||||
|
if (isLogEntryOriginal()) {
|
||||||
|
// Fix layout for small bubbles (narrow media caption edit log entries).
|
||||||
|
_description = Text(st::minPhotoSize
|
||||||
|
- st::msgPadding.left()
|
||||||
|
- st::msgPadding.right()
|
||||||
|
- st::webPageLeft);
|
||||||
|
}
|
||||||
_description.setMarkedText(st::webPageDescriptionStyle, text, *opts);
|
_description.setMarkedText(st::webPageDescriptionStyle, text, *opts);
|
||||||
}
|
}
|
||||||
if (_title.isEmpty() && !title.isEmpty()) {
|
if (_title.isEmpty() && !title.isEmpty()) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue