new features
This commit is contained in:
@@ -229,9 +229,22 @@ struct HubCatalogRow<Heading: View, Metadata: View, Actions: View, Footer: View>
|
||||
|
||||
var body: some View {
|
||||
VStack(alignment: .leading, spacing: 6) {
|
||||
HStack(content: heading).font(.headline)
|
||||
HStack(content: metadata).font(.caption).foregroundStyle(.secondary)
|
||||
HStack(content: actions)
|
||||
HStack(content: heading)
|
||||
.font(.headline)
|
||||
.lineLimit(2)
|
||||
.fixedSize(horizontal: false, vertical: true)
|
||||
ViewThatFits(in: .horizontal) {
|
||||
HStack(content: metadata).fixedSize(horizontal: true, vertical: false)
|
||||
VStack(alignment: .leading, spacing: 4, content: metadata)
|
||||
}
|
||||
.font(.caption)
|
||||
.foregroundStyle(.secondary)
|
||||
ViewThatFits(in: .horizontal) {
|
||||
HStack(content: actions).fixedSize(horizontal: true, vertical: false)
|
||||
VStack(alignment: .leading, spacing: 8, content: actions)
|
||||
.fixedSize(horizontal: false, vertical: true)
|
||||
}
|
||||
.buttonStyle(.bordered)
|
||||
footer()
|
||||
}
|
||||
.frame(maxWidth: .infinity, alignment: .leading)
|
||||
@@ -334,7 +347,7 @@ struct HubGGUFDownloads: View {
|
||||
}
|
||||
ForEach(repositories) { result in
|
||||
HubRepositoryRow(result: result, format: "GGUF") {
|
||||
Button("View Files") { lookup(result.id) }.disabled(lookupInProgress || download != nil)
|
||||
Button("Choose Download…") { lookup(result.id) }.disabled(lookupInProgress || download != nil)
|
||||
}
|
||||
}
|
||||
ForEach(assets) { asset in
|
||||
|
||||
Reference in New Issue
Block a user