mirror of
https://github.com/cranci1/Sora.git
synced 2026-04-11 12:01:18 +00:00
added setting to change anime per row in landscape and portrait modes + fixed stretched images 4
This commit is contained in:
parent
a1bbc51c11
commit
11d5f65b60
3 changed files with 4 additions and 3 deletions
|
|
@ -800,3 +800,4 @@ class CustomMediaPlayerViewController: UIViewController {
|
|||
// yes? Like the plural of the famous american rapper ye? -IBHRAD
|
||||
// low taper fade the meme is massive -cranci
|
||||
// cranci still doesnt have a job -seiike
|
||||
// guys watch Clannad already - ibro
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ struct HomeSkeletonCell: View {
|
|||
VStack {
|
||||
RoundedRectangle(cornerRadius: 10)
|
||||
.fill(Color.gray.opacity(0.3))
|
||||
.frame(width: cellWidth, height: cellWidth * 1.5) // Maintains 2:3 aspect ratio
|
||||
.frame(width: cellWidth, height: cellWidth * 1.5)
|
||||
.cornerRadius(10)
|
||||
.shimmering()
|
||||
|
||||
|
|
@ -34,7 +34,7 @@ struct SearchSkeletonCell: View {
|
|||
VStack(alignment: .leading, spacing: 8) {
|
||||
RoundedRectangle(cornerRadius: 10)
|
||||
.fill(Color.gray.opacity(0.3))
|
||||
.frame(width: cellWidth, height: cellWidth * 1.5) // Maintains 2:3 aspect ratio
|
||||
.frame(width: cellWidth, height: cellWidth * 1.5)
|
||||
.shimmering()
|
||||
RoundedRectangle(cornerRadius: 5)
|
||||
.fill(Color.gray.opacity(0.3))
|
||||
|
|
|
|||
|
|
@ -76,7 +76,7 @@ struct LibraryView: View {
|
|||
.frame(maxWidth: .infinity)
|
||||
} else {
|
||||
LazyVGrid(columns: Array(repeating: GridItem(.flexible(), spacing: 12), count: columnsCount), spacing: 12) {
|
||||
let totalSpacing: CGFloat = 16 * CGFloat(columnsCount + 1) // Spacing between items
|
||||
let totalSpacing: CGFloat = 16 * CGFloat(columnsCount + 1)
|
||||
let availableWidth = UIScreen.main.bounds.width - totalSpacing
|
||||
let cellWidth = availableWidth / CGFloat(columnsCount)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue