diff --git a/submodules/PhotoResources/Sources/PhotoResources.swift b/submodules/PhotoResources/Sources/PhotoResources.swift index 4da31297b2..903d223334 100644 --- a/submodules/PhotoResources/Sources/PhotoResources.swift +++ b/submodules/PhotoResources/Sources/PhotoResources.swift @@ -2311,7 +2311,13 @@ public func svgIconImageFile(account: Account, fileReference: FileMediaReference let imageOrientation: UIImage.Orientation = .up if fullSizeComplete, let data = try? Data(contentsOf: URL(fileURLWithPath: fullSizePath)) { - fullSizeImage = renderPreparedImage(data, CGSize.zero, .clear, UIScreenScale) + let renderSize: CGSize + if stickToTop { + renderSize = .zero + } else { + renderSize = CGSize(width: 90.0, height: 90.0) + } + fullSizeImage = renderPreparedImage(data, renderSize, .clear, UIScreenScale) if let image = fullSizeImage { fittedSize = image.size.aspectFitted(arguments.boundingSize) } diff --git a/submodules/WebUI/Sources/WebAppController.swift b/submodules/WebUI/Sources/WebAppController.swift index 90707af704..b31f870420 100644 --- a/submodules/WebUI/Sources/WebAppController.swift +++ b/submodules/WebUI/Sources/WebAppController.swift @@ -300,7 +300,7 @@ public final class WebAppController: ViewController, AttachmentContainable { } func webView(_ webView: WKWebView, didCommit navigation: WKNavigation!) { - Queue.mainQueue().after(1.0, { + Queue.mainQueue().after(0.6, { let transition = ContainedViewLayoutTransition.animated(duration: 0.2, curve: .linear) transition.updateAlpha(layer: webView.layer, alpha: 1.0) if let placeholderNode = self.placeholderNode {