2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +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;

View File

@@ -195,6 +195,7 @@ public:
not_null<HistoryItem*> parent,
not_null<PhotoData*> photo,
MediaOptions options);
~Photo();
void initDimensions() override;
int32 resizeGetHeight(int32 width) override;