Skip to content

Commit

Permalink
Fix home image size
Browse files Browse the repository at this point in the history
Fixes #1493
  • Loading branch information
1hitsong committed Nov 22, 2023
1 parent a64dc4a commit ed55faf
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions components/home/HomeRows.bs
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,14 @@ sub createLatestInRows(content as dynamic, sizeArray as dynamic)

m.homeSectionIndexes.AddReplace("latestin" + LCase(lib.name).Replace(" ", ""), m.homeSectionIndexes.count)
m.homeSectionIndexes.count++
sizeArray.Push([464, 331])

if LCase(lib.collectionType) = "movies"
sizeArray.Push([188, 331])
else if LCase(lib.collectionType) = "music"
sizeArray.Push([261, 331])
else
sizeArray.Push([464, 331])
end if

loadLatest = createObject("roSGNode", "LoadItemsTask")
loadLatest.itemsToLoad = "latest"
Expand Down Expand Up @@ -482,7 +489,6 @@ sub updateLatestItems(msg)
m.homeSectionIndexes.AddReplace(sectionName, rowIndex)

m.top.content.insertChild(row, rowIndex)
updateSizeArray(itemSize, rowIndex)

return
end if
Expand Down

0 comments on commit ed55faf

Please sign in to comment.