mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 22:55:11 +00:00
Replaced snap util function with std::clamp.
This commit is contained in:
@@ -528,7 +528,7 @@ void ConfirmContactBox::prepare() {
|
||||
_contact->initDimensions();
|
||||
accumulate_max(maxWidth, _contact->maxWidth());
|
||||
maxWidth += st::boxPadding.left() + st::boxPadding.right();
|
||||
const auto width = snap(maxWidth, st::boxWidth, st::boxWideWidth);
|
||||
const auto width = std::clamp(maxWidth, st::boxWidth, st::boxWideWidth);
|
||||
const auto available = width
|
||||
- st::boxPadding.left()
|
||||
- st::boxPadding.right();
|
||||
|
Reference in New Issue
Block a user