Skip to content

Commit a523f70

Browse files
committed
Various fixes
1 parent 641310f commit a523f70

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

submodules/TelegramUI/Components/Gifts/GiftStoreScreen/Sources/GiftStoreScreen.swift

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,7 @@ final class GiftStoreScreenComponent: Component {
341341
}
342342
self.showLoading = true
343343
self.state?.starGiftsContext.updateFilterAttributes([])
344+
self.scrollToTop()
344345
},
345346
animateScale: false
346347
)
@@ -359,7 +360,7 @@ final class GiftStoreScreenComponent: Component {
359360
var emptyResultsActionFrame = CGRect(
360361
origin: CGPoint(
361362
x: floorToScreenPixels((availableWidth - emptyResultsActionSize.width) / 2.0),
362-
y: max(self.scrollView.contentSize.height - 8.0, availableHeight - bottomInset - emptyResultsActionSize.height - 16.0)
363+
y: max(self.scrollView.contentSize.height - 70.0, availableHeight - bottomInset - emptyResultsActionSize.height - 16.0)
363364
),
364365
size: emptyResultsActionSize
365366
)
@@ -437,7 +438,7 @@ final class GiftStoreScreenComponent: Component {
437438
if view.superview == nil {
438439
view.alpha = 0.0
439440
fadeTransition.setAlpha(view: view, alpha: 1.0)
440-
self.insertSubview(view, belowSubview: self.loadingNode.view)
441+
self.scrollView.addSubview(view)
441442
}
442443
view.bounds = CGRect(origin: .zero, size: emptyResultsActionFrame.size)
443444
ComponentTransition.immediate.setPosition(view: view, position: emptyResultsActionFrame.center)
@@ -847,7 +848,7 @@ final class GiftStoreScreenComponent: Component {
847848
self.backgroundColor = environment.theme.list.blocksBackgroundColor
848849
}
849850

850-
let bottomContentInset: CGFloat = 24.0
851+
let bottomContentInset: CGFloat = 56.0
851852
let sideInset: CGFloat = 16.0 + environment.safeInsets.left
852853
let headerSideInset: CGFloat = 24.0 + environment.safeInsets.left
853854

0 commit comments

Comments
 (0)