fix the key, hostskeys, snippet views being black sometimes

This commit is contained in:
neon443
2025-11-07 10:23:14 +00:00
parent 750bf6ee62
commit db899fbb0f
3 changed files with 145 additions and 151 deletions

View File

@@ -14,7 +14,6 @@ struct HostkeysView: View {
ZStack { ZStack {
hostsManager.selectedTheme.background.suiColor.opacity(0.7) hostsManager.selectedTheme.background.suiColor.opacity(0.7)
.ignoresSafeArea(.all) .ignoresSafeArea(.all)
NavigationStack {
List { List {
if hostsManager.hosts.isEmpty { if hostsManager.hosts.isEmpty {
VStack(alignment: .leading) { VStack(alignment: .leading) {
@@ -64,7 +63,6 @@ struct HostkeysView: View {
} }
} }
} }
}
#Preview { #Preview {
HostkeysView(hostsManager: HostsManager()) HostkeysView(hostsManager: HostsManager())

View File

@@ -17,7 +17,6 @@ struct KeyManagerView: View {
ZStack { ZStack {
hostsManager.selectedTheme.background.suiColor.opacity(0.7) hostsManager.selectedTheme.background.suiColor.opacity(0.7)
.ignoresSafeArea(.all) .ignoresSafeArea(.all)
NavigationStack {
List { List {
Section() { Section() {
ForEach(keyManager.keypairs) { kp in ForEach(keyManager.keypairs) { kp in
@@ -72,7 +71,6 @@ struct KeyManagerView: View {
} }
} }
} }
}
#Preview { #Preview {
KeyManagerView( KeyManagerView(

View File

@@ -15,7 +15,6 @@ struct SnippetManagerView: View {
ZStack { ZStack {
hostsManager.selectedTheme.background.suiColor.opacity(0.7) hostsManager.selectedTheme.background.suiColor.opacity(0.7)
.ignoresSafeArea(.all) .ignoresSafeArea(.all)
NavigationStack {
List { List {
if hostsManager.snippets.isEmpty { if hostsManager.snippets.isEmpty {
VStack(alignment: .leading) { VStack(alignment: .leading) {
@@ -77,7 +76,6 @@ struct SnippetManagerView: View {
Label("Add", systemImage: "plus") Label("Add", systemImage: "plus")
} }
} }
}
.navigationTitle("Snippets") .navigationTitle("Snippets")
} }
} }