From 4d3639f9507b4ebfe32b3b10559f211b1e0422e5 Mon Sep 17 00:00:00 2001 From: Ali <> Date: Fri, 30 Jun 2023 23:36:44 +0200 Subject: [PATCH] Stories --- .../StoryPeerListComponent/Sources/StoryPeerListComponent.swift | 2 +- .../Sources/StoryPeerListItemComponent.swift | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/submodules/TelegramUI/Components/Stories/StoryPeerListComponent/Sources/StoryPeerListComponent.swift b/submodules/TelegramUI/Components/Stories/StoryPeerListComponent/Sources/StoryPeerListComponent.swift index b330480fb4..41f32d4b67 100644 --- a/submodules/TelegramUI/Components/Stories/StoryPeerListComponent/Sources/StoryPeerListComponent.swift +++ b/submodules/TelegramUI/Components/Stories/StoryPeerListComponent/Sources/StoryPeerListComponent.swift @@ -1192,7 +1192,7 @@ public final class StoryPeerListComponent: Component { if let titleIconSize, let titleIconView = self.titleIconView?.view { titleContentOffset += titleIconSpacing - let titleIconFrame = CGRect(origin: CGPoint(x: titleContentOffset + titleIconSpacing + (collapsedState.titleWidth - (titleIconSpacing + titleIconSize.width)) * (1.0 - collapsedState.activityFraction), y: collapsedItemOffsetY + 2.0 + floor((56.0 - titleIconSize.height) * 0.5)), size: titleIconSize) + let titleIconFrame = CGRect(origin: CGPoint(x: titleContentOffset - 3.0 + titleIconSpacing + (collapsedState.titleWidth - (titleIconSpacing + titleIconSize.width)) * (1.0 - collapsedState.activityFraction), y: collapsedItemOffsetY + 2.0 + floor((56.0 - titleIconSize.height) * 0.5)), size: titleIconSize) if titleIconView.superview == nil { self.addSubview(titleIconView) diff --git a/submodules/TelegramUI/Components/Stories/StoryPeerListComponent/Sources/StoryPeerListItemComponent.swift b/submodules/TelegramUI/Components/Stories/StoryPeerListComponent/Sources/StoryPeerListItemComponent.swift index 2524672c31..53066a51eb 100644 --- a/submodules/TelegramUI/Components/Stories/StoryPeerListComponent/Sources/StoryPeerListItemComponent.swift +++ b/submodules/TelegramUI/Components/Stories/StoryPeerListComponent/Sources/StoryPeerListItemComponent.swift @@ -499,6 +499,7 @@ public final class StoryPeerListItemComponent: Component { func updateIsPreviewing(isPreviewing: Bool) { self.avatarContent.alpha = isPreviewing ? 0.0 : 1.0 + self.avatarBackgroundView.alpha = isPreviewing ? 0.0 : 1.0 } func update(component: StoryPeerListItemComponent, availableSize: CGSize, state: EmptyComponentState, environment: Environment, transition: Transition) -> CGSize {