2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-02 07:25:46 +00:00

Show nice padded code blocks.

This commit is contained in:
John Preston
2023-10-13 10:04:29 +04:00
parent dd692f2d26
commit 0e79bd3d12
47 changed files with 187 additions and 46 deletions

View File

@@ -346,6 +346,8 @@ Photo::Photo(
}
}
Photo::~Photo() = default;
void Photo::initDimensions() {
_maxw = 2 * st::overviewPhotoMinSize;
_minh = _story ? qRound(_maxw * kStoryRatio) : _maxw;