From a5e5604d845f00c481414cd753dddececc558981 Mon Sep 17 00:00:00 2001 From: Arkadiusz Fal Date: Thu, 15 Dec 2022 22:41:42 +0100 Subject: [PATCH] Fix images size in sidebar --- Shared/Constants.swift | 2 +- Shared/Navigation/AppSidebarRecents.swift | 2 +- Shared/Navigation/AppSidebarSubscriptions.swift | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Shared/Constants.swift b/Shared/Constants.swift index 2ab38358..026a2448 100644 --- a/Shared/Constants.swift +++ b/Shared/Constants.swift @@ -20,7 +20,7 @@ struct Constants { #endif } - static var recentsChannelThumbnailSize: Double { + static var sidebarChannelThumbnailSize: Double { #if os(macOS) 20 #else diff --git a/Shared/Navigation/AppSidebarRecents.swift b/Shared/Navigation/AppSidebarRecents.swift index 8455d871..777f2782 100644 --- a/Shared/Navigation/AppSidebarRecents.swift +++ b/Shared/Navigation/AppSidebarRecents.swift @@ -75,7 +75,7 @@ struct RecentNavigationLink: View { channel.thumbnailURLOrCached != nil { ChannelAvatarView(channel: channel, subscribedBadge: false) - .frame(width: Constants.recentsChannelThumbnailSize, height: Constants.recentsChannelThumbnailSize) + .frame(width: Constants.sidebarChannelThumbnailSize, height: Constants.sidebarChannelThumbnailSize) Text(channel.name) } else { diff --git a/Shared/Navigation/AppSidebarSubscriptions.swift b/Shared/Navigation/AppSidebarSubscriptions.swift index b6d42f91..cd277b89 100644 --- a/Shared/Navigation/AppSidebarSubscriptions.swift +++ b/Shared/Navigation/AppSidebarSubscriptions.swift @@ -17,7 +17,7 @@ struct AppSidebarSubscriptions: View { HStack { if channel.thumbnailURL != nil { ChannelAvatarView(channel: channel, subscribedBadge: false) - .frame(width: 20, height: 20) + .frame(width: Constants.sidebarChannelThumbnailSize, height: Constants.sidebarChannelThumbnailSize) Text(channel.name) } else {