2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Fix small stories thumbnails in profile / my stories.

This commit is contained in:
John Preston
2023-07-13 11:15:37 +04:00
parent 8a974273b9
commit 91cc5f5284
6 changed files with 29 additions and 20 deletions

View File

@@ -389,11 +389,10 @@ void TopBar::updateStoriesGeometry(int newWidth) {
}
const auto left = (_back ? _st.back.width : _st.titlePosition.x())
- st::dialogsStories.left - st::dialogsStories.photoLeft;
const auto top = st::dialogsStories.height
- st::dialogsStoriesFull.height
+ (_st.height - st::dialogsStories.height) / 2;
const auto top = (_st.height - st::dialogsStories.height) / 2;
_stories->resizeToWidth(newWidth - left - right);
_stories->moveToLeft(left, top, newWidth);
_stories->entity()->setLayoutConstraints({ 0, 0 }, style::al_left);
}
void TopBar::paintEvent(QPaintEvent *e) {