Fix layout for the log entries of caption edits.

This commit is contained in:
John Preston 2017-08-25 16:50:36 +03:00
parent 5a1d52f82e
commit 20efa47126

View file

@ -3319,6 +3319,13 @@ void HistoryWebPage::initDimensions() {
} else if (_data->siteName == qstr("Instagram")) {
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);
}
if (_title.isEmpty() && !title.isEmpty()) {