Move modules tip to +/-
This commit is contained in:
parent
7070661c3b
commit
00bf415056
|
@ -59,7 +59,6 @@ struct ModuleListView: View, Routable {
|
||||||
} header: {
|
} header: {
|
||||||
if !profileEditor.modules.isEmpty {
|
if !profileEditor.modules.isEmpty {
|
||||||
Text(Strings.Global.modules)
|
Text(Strings.Global.modules)
|
||||||
.themeTip(Strings.Views.Profile.ModuleList.Section.footer, edge: .bottom)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -88,6 +87,8 @@ private extension ModuleListView {
|
||||||
ThemeImage(.remove)
|
ThemeImage(.remove)
|
||||||
}
|
}
|
||||||
.disabled(!canRemoveSelectedModule)
|
.disabled(!canRemoveSelectedModule)
|
||||||
|
EmptyView()
|
||||||
|
.themeTip(Strings.Views.Profile.ModuleList.Section.footer, edge: .bottom)
|
||||||
}
|
}
|
||||||
|
|
||||||
var addModuleMenu: some View {
|
var addModuleMenu: some View {
|
||||||
|
|
|
@ -309,6 +309,7 @@ struct ThemeTipModifier: ViewModifier {
|
||||||
} label: {
|
} label: {
|
||||||
ThemeImage(.tip)
|
ThemeImage(.tip)
|
||||||
}
|
}
|
||||||
|
.imageScale(.large)
|
||||||
.buttonStyle(.borderless)
|
.buttonStyle(.borderless)
|
||||||
.popover(isPresented: $isPresenting, arrowEdge: edge) {
|
.popover(isPresented: $isPresenting, arrowEdge: edge) {
|
||||||
VStack {
|
VStack {
|
||||||
|
|
Loading…
Reference in New Issue