mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-11-06 01:09:30 +00:00
iPad max column width on some screens
This commit is contained in:
parent
997d82047e
commit
770fcfd62b
4 changed files with 14 additions and 2 deletions
|
@ -4,4 +4,5 @@ extension CGFloat {
|
|||
public static let layoutPadding: CGFloat = 20
|
||||
public static let dividerPadding: CGFloat = 4
|
||||
public static let statusColumnsSpacing: CGFloat = 8
|
||||
public static let maxColumnWidth: CGFloat = 650
|
||||
}
|
||||
|
|
|
@ -1,13 +1,20 @@
|
|||
import Foundation
|
||||
|
||||
public struct Tag: Codable, Identifiable {
|
||||
|
||||
public struct Tag: Codable, Identifiable, Equatable, Hashable {
|
||||
public struct History: Codable {
|
||||
public let day: String
|
||||
public let accounts: String
|
||||
public let uses: String
|
||||
}
|
||||
|
||||
public func hash(into hasher: inout Hasher) {
|
||||
hasher.combine(name)
|
||||
}
|
||||
|
||||
public static func == (lhs: Tag, rhs: Tag) -> Bool {
|
||||
lhs.name == rhs.name
|
||||
}
|
||||
|
||||
public var id: String {
|
||||
name
|
||||
}
|
||||
|
|
|
@ -20,9 +20,11 @@ public struct NotificationsListView: View {
|
|||
notificationsView
|
||||
}
|
||||
.padding(.top, 16)
|
||||
.frame(maxWidth: .maxColumnWidth)
|
||||
}
|
||||
.padding(.horizontal, .layoutPadding)
|
||||
.padding(.top, .layoutPadding)
|
||||
.background(theme.primaryBackgroundColor)
|
||||
}
|
||||
.navigationTitle(viewModel.selectedType?.menuTitle() ?? "All Notifications")
|
||||
.navigationBarTitleDisplayMode(.inline)
|
||||
|
@ -43,6 +45,7 @@ public struct NotificationsListView: View {
|
|||
}
|
||||
}
|
||||
}
|
||||
.scrollContentBackground(.hidden)
|
||||
.background(theme.primaryBackgroundColor)
|
||||
.task {
|
||||
viewModel.client = client
|
||||
|
|
|
@ -48,6 +48,7 @@ public struct StatusesListView<Fetcher>: View where Fetcher: StatusesFetcher {
|
|||
}
|
||||
}
|
||||
}
|
||||
.frame(maxWidth: .maxColumnWidth)
|
||||
}
|
||||
|
||||
private var loadingRow: some View {
|
||||
|
|
Loading…
Reference in a new issue