mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
Slightly improved style of geo location in media preview.
This commit is contained in:
@@ -483,7 +483,10 @@ void ShowPollGeoPreview(
|
||||
body.width() - 2 * skip,
|
||||
body.height() - 2 * skip);
|
||||
const auto side = std::min(maxSide, st::locationSize.width());
|
||||
const auto scaled = QSize(side, side);
|
||||
const auto scaled = QSize(
|
||||
side,
|
||||
(side * st::locationSize.height()
|
||||
/ st::locationSize.width()));
|
||||
const auto shadowExtend = st::boxRoundShadow.extend;
|
||||
const auto fullW = scaled.width()
|
||||
+ rect::m::sum::h(shadowExtend);
|
||||
|
||||
Reference in New Issue
Block a user