mirror of
https://github.com/neon443/ShhShell.git
synced 2026-03-11 21:36:17 +00:00
fix the key, hostskeys, snippet views being black sometimes
This commit is contained in:
@@ -14,7 +14,6 @@ struct HostkeysView: View {
|
||||
ZStack {
|
||||
hostsManager.selectedTheme.background.suiColor.opacity(0.7)
|
||||
.ignoresSafeArea(.all)
|
||||
NavigationStack {
|
||||
List {
|
||||
if hostsManager.hosts.isEmpty {
|
||||
VStack(alignment: .leading) {
|
||||
@@ -63,7 +62,6 @@ struct HostkeysView: View {
|
||||
.navigationTitle("Hostkeys")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#Preview {
|
||||
|
||||
@@ -17,7 +17,6 @@ struct KeyManagerView: View {
|
||||
ZStack {
|
||||
hostsManager.selectedTheme.background.suiColor.opacity(0.7)
|
||||
.ignoresSafeArea(.all)
|
||||
NavigationStack {
|
||||
List {
|
||||
Section() {
|
||||
ForEach(keyManager.keypairs) { kp in
|
||||
@@ -71,7 +70,6 @@ struct KeyManagerView: View {
|
||||
.navigationTitle("Keys")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#Preview {
|
||||
|
||||
@@ -15,7 +15,6 @@ struct SnippetManagerView: View {
|
||||
ZStack {
|
||||
hostsManager.selectedTheme.background.suiColor.opacity(0.7)
|
||||
.ignoresSafeArea(.all)
|
||||
NavigationStack {
|
||||
List {
|
||||
if hostsManager.snippets.isEmpty {
|
||||
VStack(alignment: .leading) {
|
||||
@@ -77,7 +76,6 @@ struct SnippetManagerView: View {
|
||||
Label("Add", systemImage: "plus")
|
||||
}
|
||||
}
|
||||
}
|
||||
.navigationTitle("Snippets")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user