From 41cc6f576eb6aae3c7a7a9c2ee53f67ac2170715 Mon Sep 17 00:00:00 2001 From: Marco Gomiero Date: Sun, 22 Oct 2023 15:43:40 -0400 Subject: [PATCH] Improve feed source dropdown on iOS drawer --- iosApp/Source/App/Drawer/SidebarDrawer.swift | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/iosApp/Source/App/Drawer/SidebarDrawer.swift b/iosApp/Source/App/Drawer/SidebarDrawer.swift index 4bc6a4f0..3b39ed52 100644 --- a/iosApp/Source/App/Drawer/SidebarDrawer.swift +++ b/iosApp/Source/App/Drawer/SidebarDrawer.swift @@ -65,14 +65,24 @@ struct SidebarDrawer: View { ) { drawerItem in if let drawerFeedSource = drawerItem as? DrawerItem.DrawerFeedSource { HStack { - VStack(alignment: .leading) { - Text(drawerFeedSource.feedSource.title) - Text(drawerFeedSource.feedSource.url) - } + Image(systemName: "square.stack.3d.up") + + Text(drawerFeedSource.feedSource.title) + .lineLimit(2) + .font(.system(size: 16)) + .padding(.bottom, 2) + .padding(.leading, Spacing.small) Spacer() } + .listRowInsets( + EdgeInsets( + top: Spacing.small, + leading: .zero, + bottom: Spacing.small, + trailing: Spacing.small) + ) .contentShape(Rectangle()) .onTapGesture { self.selectedDrawerItem = drawerItem