Improve layout on iPad, fix file names

This commit is contained in:
Jackson Harper
2023-09-12 11:02:10 +08:00
parent 419b536b7c
commit 15505644e6
2 changed files with 4 additions and 10 deletions

View File

@ -155,7 +155,6 @@ public struct GridCard: View {
Spacer()
}
// .onTapGesture { tapHandler() }
}
.frame(height: 30)
.padding(.horizontal, 10)
@ -167,7 +166,7 @@ public struct GridCard: View {
Text(item.descriptionText ?? item.unwrappedTitle)
.font(.appSubheadline)
.foregroundColor(.appGrayTextContrast)
.lineLimit(nil)
.lineLimit(3)
.multilineTextAlignment(.leading)
Spacer()
@ -185,11 +184,6 @@ public struct GridCard: View {
}
.padding(.horizontal, 10)
}
// .onTapGesture { tapHandler() }
}
if item.serverSyncStatus != ServerSyncStatus.isNSync.rawValue {
SyncStatusIcon(status: ServerSyncStatus(rawValue: Int(item.serverSyncStatus)) ?? ServerSyncStatus.isNSync)
}
}
.padding(.horizontal, 0)

View File

@ -27,8 +27,8 @@ public struct LibraryItemCard: View {
public var body: some View {
VStack {
HStack(alignment: .top, spacing: 10) {
imageBox
articleInfo
imageBox
}
.frame(maxWidth: .infinity, maxHeight: .infinity)
@ -156,12 +156,12 @@ public struct LibraryItemCard: View {
image
.resizable()
.aspectRatio(contentMode: .fill)
.frame(width: 74 * 0.666, height: 74)
.frame(width: 60, height: 60)
.cornerRadius(5)
.padding(.top, 2)
} else {
Color.systemBackground
.frame(width: 74 * 0.666, height: 74)
.frame(width: 60, height: 60)
.cornerRadius(5)
.padding(.top, 2)
}