#42 Fix issue with expanded navigation menu buttons after closing compose screen

This commit is contained in:
Marcin Czachurski 2023-04-18 13:17:24 +02:00
parent 25519b5468
commit 209fa0969d
1 changed files with 4 additions and 3 deletions

View File

@ -36,18 +36,18 @@ private struct NavigationMenu<MenuItems>: ViewModifier where MenuItems: View {
VStack(alignment: .trailing) {
Spacer()
HStack {
HStack(alignment: .center) {
if self.menuPosition == .bottomRight {
Spacer()
self.menuContainerView()
.padding(.trailing, 30)
.padding(.trailing, 24)
.padding(.bottom, 10)
}
if self.menuPosition == .bottomLeft {
self.menuContainerView()
.padding(.leading, 30)
.padding(.leading, 24)
.padding(.bottom, 10)
Spacer()
@ -71,6 +71,7 @@ private struct NavigationMenu<MenuItems>: ViewModifier where MenuItems: View {
self.contextMenuView()
}
}
.frame(height: 44)
.padding(.horizontal, 8)
.background(.ultraThinMaterial)
.clipShape(Capsule())