Fix images size in sidebar

This commit is contained in:
Arkadiusz Fal 2022-12-15 22:41:42 +01:00
parent a7b489d081
commit a5e5604d84
3 changed files with 3 additions and 3 deletions

View File

@ -20,7 +20,7 @@ struct Constants {
#endif
}
static var recentsChannelThumbnailSize: Double {
static var sidebarChannelThumbnailSize: Double {
#if os(macOS)
20
#else

View File

@ -75,7 +75,7 @@ struct RecentNavigationLink<DestinationContent: View>: 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 {

View File

@ -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 {