Move modules tip to +/-

This commit is contained in:
Davide De Rosa 2024-10-04 02:57:09 +02:00
parent 7070661c3b
commit 00bf415056
No known key found for this signature in database
GPG Key ID: A48836171C759F5E
2 changed files with 3 additions and 1 deletions

View File

@ -59,7 +59,6 @@ struct ModuleListView: View, Routable {
} header: {
if !profileEditor.modules.isEmpty {
Text(Strings.Global.modules)
.themeTip(Strings.Views.Profile.ModuleList.Section.footer, edge: .bottom)
}
}
}
@ -88,6 +87,8 @@ private extension ModuleListView {
ThemeImage(.remove)
}
.disabled(!canRemoveSelectedModule)
EmptyView()
.themeTip(Strings.Views.Profile.ModuleList.Section.footer, edge: .bottom)
}
var addModuleMenu: some View {

View File

@ -309,6 +309,7 @@ struct ThemeTipModifier: ViewModifier {
} label: {
ThemeImage(.tip)
}
.imageScale(.large)
.buttonStyle(.borderless)
.popover(isPresented: $isPresenting, arrowEdge: edge) {
VStack {