Various fixes

This commit is contained in:
Ilya Laktyushin 2025-03-27 15:11:46 +04:00
parent 97eea98f11
commit b19e056a37
2 changed files with 2 additions and 2 deletions

View File

@ -488,7 +488,7 @@ private final class PeerInfoScreenBusinessHoursItemNode: PeerInfoScreenItemNode
animateContents: false animateContents: false
)), )),
environment: {}, environment: {},
containerSize: CGSize(width: 100.0, height: 100.0) containerSize: CGSize(width: 200.0, height: 100.0)
) )
} else { } else {
if let timezoneSwitchButton = self.timezoneSwitchButton { if let timezoneSwitchButton = self.timezoneSwitchButton {

View File

@ -1099,7 +1099,7 @@ public final class PeerInfoGiftsPaneNode: ASDisplayNode, PeerInfoPaneNode, UIScr
}))) })))
} }
if case .unique = gift.gift, canReorder { if case .unique = gift.gift, canManage && canReorder {
items.append(.action(ContextMenuActionItem(text: strings.PeerInfo_Gifts_Context_Reorder, icon: { theme in generateTintedImage(image: UIImage(bundleImageName: "Chat/Context Menu/ReorderItems"), color: theme.contextMenu.primaryColor) }, action: { [weak self] c, f in items.append(.action(ContextMenuActionItem(text: strings.PeerInfo_Gifts_Context_Reorder, icon: { theme in generateTintedImage(image: UIImage(bundleImageName: "Chat/Context Menu/ReorderItems"), color: theme.contextMenu.primaryColor) }, action: { [weak self] c, f in
c?.dismiss(completion: { [weak self] in c?.dismiss(completion: { [weak self] in
guard let self else { guard let self else {