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:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user