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) {
|
||||
@@ -64,7 +63,6 @@ struct HostkeysView: View {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#Preview {
|
||||
HostkeysView(hostsManager: HostsManager())
|
||||
|
||||
@@ -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
|
||||
@@ -72,7 +71,6 @@ struct KeyManagerView: View {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#Preview {
|
||||
KeyManagerView(
|
||||
|
||||
@@ -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