mirror of
https://github.com/cranci1/Sora.git
synced 2026-03-29 05:48:43 +00:00
does ts even work 😭
This commit is contained in:
parent
893ab70a53
commit
78ec26f0ee
1 changed files with 15 additions and 3 deletions
|
|
@ -135,8 +135,7 @@ struct SearchContentView: View {
|
|||
onHistoryItemDeleted: onHistoryItemDeleted,
|
||||
onClearHistory: onClearHistory
|
||||
)
|
||||
.navigationTitle("Search")
|
||||
.navigationBarTitleDisplayMode(.large)
|
||||
.frame(maxWidth: .infinity, maxHeight: .infinity)
|
||||
}
|
||||
.navigationViewStyle(.stack)
|
||||
}
|
||||
|
|
@ -170,7 +169,7 @@ struct SearchContent: View {
|
|||
.foregroundColor(.secondary)
|
||||
}
|
||||
.padding()
|
||||
.frame(maxWidth: .infinity)
|
||||
.frame(maxWidth: .infinity, maxHeight: .infinity)
|
||||
.background(Color(.systemBackground))
|
||||
.shadow(color: Color.black.opacity(0.1), radius: 2, y: 1)
|
||||
}
|
||||
|
|
@ -204,6 +203,18 @@ struct SearchContent: View {
|
|||
}
|
||||
}
|
||||
.padding(.vertical)
|
||||
} else {
|
||||
VStack(spacing: 8) {
|
||||
Image(systemName: "magnifyingglass")
|
||||
.font(.largeTitle)
|
||||
.foregroundColor(.secondary)
|
||||
Text("Start Searching")
|
||||
.font(.headline)
|
||||
Text("Enter a search term to begin")
|
||||
.font(.caption)
|
||||
.foregroundColor(.secondary)
|
||||
}
|
||||
.frame(maxWidth: .infinity, maxHeight: .infinity)
|
||||
}
|
||||
} else {
|
||||
if let module = selectedModule {
|
||||
|
|
@ -225,5 +236,6 @@ struct SearchContent: View {
|
|||
}
|
||||
}
|
||||
}
|
||||
.frame(maxWidth: .infinity, maxHeight: .infinity)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue