Skip to content
This repository was archived by the owner on Feb 24, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion DuckDuckGo/HomePage/View/FavoritesView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,11 @@ struct FavoritesGrid: View {
private func pointConstrainedToFavoritesView(_ point: CGPoint) -> CGPoint {
let rowCount: Int = {
if model.showAllFavorites {
return model.models.count / HomePage.favoritesPerRow
var count = model.models.count / HomePage.favoritesPerRow
if model.models.count % HomePage.favoritesPerRow > 0 {
count += 1
}
return count
}
return HomePage.favoritesRowCountWhenCollapsed
}()
Expand Down