mirror of
https://github.com/yattee/yattee.git
synced 2025-01-07 21:37:08 +00:00
Fix images size in sidebar
This commit is contained in:
parent
a7b489d081
commit
a5e5604d84
@ -20,7 +20,7 @@ struct Constants {
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
static var recentsChannelThumbnailSize: Double {
|
static var sidebarChannelThumbnailSize: Double {
|
||||||
#if os(macOS)
|
#if os(macOS)
|
||||||
20
|
20
|
||||||
#else
|
#else
|
||||||
|
@ -75,7 +75,7 @@ struct RecentNavigationLink<DestinationContent: View>: View {
|
|||||||
channel.thumbnailURLOrCached != nil
|
channel.thumbnailURLOrCached != nil
|
||||||
{
|
{
|
||||||
ChannelAvatarView(channel: channel, subscribedBadge: false)
|
ChannelAvatarView(channel: channel, subscribedBadge: false)
|
||||||
.frame(width: Constants.recentsChannelThumbnailSize, height: Constants.recentsChannelThumbnailSize)
|
.frame(width: Constants.sidebarChannelThumbnailSize, height: Constants.sidebarChannelThumbnailSize)
|
||||||
|
|
||||||
Text(channel.name)
|
Text(channel.name)
|
||||||
} else {
|
} else {
|
||||||
|
@ -17,7 +17,7 @@ struct AppSidebarSubscriptions: View {
|
|||||||
HStack {
|
HStack {
|
||||||
if channel.thumbnailURL != nil {
|
if channel.thumbnailURL != nil {
|
||||||
ChannelAvatarView(channel: channel, subscribedBadge: false)
|
ChannelAvatarView(channel: channel, subscribedBadge: false)
|
||||||
.frame(width: 20, height: 20)
|
.frame(width: Constants.sidebarChannelThumbnailSize, height: Constants.sidebarChannelThumbnailSize)
|
||||||
|
|
||||||
Text(channel.name)
|
Text(channel.name)
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user