Skip to content

Commit

Permalink
Fix bottom bar entry
Browse files Browse the repository at this point in the history
  • Loading branch information
bourvill committed Oct 21, 2023
1 parent 1398009 commit 34d4b81
Showing 1 changed file with 15 additions and 17 deletions.
32 changes: 15 additions & 17 deletions App/Features/Entry/EntryView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -37,23 +37,16 @@ struct EntryView: View {
}
.toolbar {
ToolbarItem(placement: toolbarPlacement) {
HStack {
FontSizeSelectorView()
.buttonStyle(.plain)
#if os(iOS)
Spacer()
#endif
Menu(content: {
bottomBarButton
}, label: {
Label("Entry option", systemImage: "filemenu.and.selection")
.foregroundColor(.primary)
.labelStyle(.iconOnly)
})
.accessibilityLabel("Entry option")
.frame(width: 28, height: 28)
.contentShape(Rectangle())
}
Menu(content: {
bottomBarButton
}, label: {
Label("Entry option", systemImage: "filemenu.and.selection")
.foregroundColor(.primary)
.labelStyle(.iconOnly)
})
.accessibilityLabel("Entry option")
.frame(width: 28, height: 28)
.contentShape(Rectangle())
.actionSheet(isPresented: $showDeleteConfirm) {
ActionSheet(
title: Text("Confirm delete?"),
Expand All @@ -67,6 +60,11 @@ struct EntryView: View {
)
}
}

ToolbarItem(placement: toolbarPlacement) {
FontSizeSelectorView()
.buttonStyle(.plain)
}
}
.sheet(isPresented: $showTag) {
TagListFor(tagsForEntry: TagsForEntryPublisher(entry: entry))
Expand Down

0 comments on commit 34d4b81

Please sign in to comment.