Skip to content

Commit

Permalink
Use wide poster component for My List
Browse files Browse the repository at this point in the history
  • Loading branch information
1hitsong committed Dec 23, 2024
1 parent eacf521 commit cb4d3b7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/ItemGrid/LoadItemsTask2.bs
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,8 @@ sub loadItems()

url = "/items/"

params.append(
{ UserId: m.global.session.user.id,
params.append({
UserId: m.global.session.user.id,
ImageTypeLimit: 1,
EnableImageTypes: `${ImageType.PRIMARY}, ${ImageType.BACKDROP}, ${ImageType.THUMB}`,
Limit: 50,
Expand Down
9 changes: 9 additions & 0 deletions components/Libraries/VisualLibraryScene.bs
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,15 @@ sub loadInitialItems()
m.infoGroup.visible = false
end if

if isStringEqual(m.top.mediaType, ItemType.MYLIST)
m.itemGrid.itemComponentName = "GridItemMedium"
m.itemGrid.itemSize = "[400, 330]"
m.itemGrid.rowHeights = "[330]"
m.itemGrid.itemSpacing = "[40, 20]"
m.itemGrid.numColumns = "4"
m.top.imageDisplayMode = "scaleToZoom"
end if

if isStringEqual(m.top.mediaType, ItemType.MUSICVIDEO)
m.itemGrid.itemComponentName = "GridItemMedium"
m.itemGrid.itemSize = "[400, 330]"
Expand Down

0 comments on commit cb4d3b7

Please sign in to comment.