Various fixes

This commit is contained in:
Ilya Laktyushin
2024-03-28 17:25:59 +04:00
parent 40007ea9d0
commit 83ea35df09
5 changed files with 43 additions and 43 deletions

View File

@@ -245,7 +245,7 @@ private final class MediaCutoutScreenComponent: Component {
transition.setFrame(view: view, frame: previewContainerFrame)
}
let frameWidth = floor(previewContainerFrame.width * 0.97)
let frameWidth = floorToScreenPixels(previewContainerFrame.width * 0.97)
self.fadeView.frame = CGRect(x: floorToScreenPixels((previewContainerFrame.width - frameWidth) / 2.0), y: previewContainerFrame.minY + floorToScreenPixels((previewContainerFrame.height - frameWidth) / 2.0), width: frameWidth, height: frameWidth)
self.fadeView.layer.cornerRadius = frameWidth / 8.0