mirror of
https://github.com/yattee/yattee.git
synced 2024-12-22 13:33:42 +00:00
Fix images size in sidebar
This commit is contained in:
parent
a7b489d081
commit
a5e5604d84
@ -20,7 +20,7 @@ struct Constants {
|
||||
#endif
|
||||
}
|
||||
|
||||
static var recentsChannelThumbnailSize: Double {
|
||||
static var sidebarChannelThumbnailSize: Double {
|
||||
#if os(macOS)
|
||||
20
|
||||
#else
|
||||
|
@ -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 {
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user