Skip to content

Commit

Permalink
Fix layout in ReaderSubscriptionCel actions
Browse files Browse the repository at this point in the history
  • Loading branch information
kean committed Jan 9, 2025
1 parent ac046d0 commit 264f633
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ struct ReaderSidebarSubscriptionCell: View {
.sheet(isPresented: $isShowingSettings) {
ReaderSubscriptionNotificationSettingsView(siteID: site.siteID.intValue)
.presentationDetents([.medium, .large])
.edgesIgnoringSafeArea(.bottom)
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,13 @@ struct ReaderSubscriptionCell: View {

Spacer()

if let status = ReaderSubscriptionNotificationsStatus(site: site) {
makeButtonNotificationSettings(with: status)
HStack(spacing: 0) {
if let status = ReaderSubscriptionNotificationsStatus(site: site) {
makeButtonNotificationSettings(with: status)
}
buttonMore
}
buttonMore
.padding(.trailing, -16)
}
.contextMenu(menuItems: {
ReaderSubscriptionContextMenu(site: site, isShowingSettings: $isShowingSettings)
Expand Down Expand Up @@ -70,12 +73,13 @@ struct ReaderSubscriptionCell: View {
}
.font(.subheadline)
.frame(width: 34, alignment: .center)
.padding(.trailing, 6)
.contentShape(Rectangle())
}
.buttonStyle(.plain)
.sheet(isPresented: $isShowingSettings) {
ReaderSubscriptionNotificationSettingsView(siteID: site.siteID.intValue)
.presentationDetents([.medium, .large])
.edgesIgnoringSafeArea(.bottom)
}
}

Expand All @@ -85,7 +89,8 @@ struct ReaderSubscriptionCell: View {
} label: {
Image(systemName: "ellipsis")
.foregroundStyle(.secondary)
.frame(width: 44, height: 44)
.frame(width: 40, height: 40)
.contentShape(Rectangle())
}
.buttonStyle(.plain)
}
Expand Down

0 comments on commit 264f633

Please sign in to comment.