bartervg / barter.vg

Track and hold discussion on Barter.vg bugs, enhancements, and other issues
https://barter.vg
MIT License
20 stars 4 forks source link

Allow for Steam game images in offer creation #306

Open bartervg opened 1 year ago

bartervg commented 1 year ago

What problem does this feature address?

The offer creation page uses the collection page layout, but unlike the collection page, there isn't an option to display images.

Describe a solution

Add an option to display images. Due to the small space, perhaps a smaller image than the 184x69px capsules, such as the 32x32 icons.

Examples of similar features

The collection pages, e.g. tradables, wishlists.

As discussed at https://discord.com/channels/329829406153375755/438406560222281738/1055577656491515994

bartervg commented 1 year ago

Looking at SteamDB, there are 32x32px and 64x64 icons https://cdn.cloudflare.steamstatic.com/steamcommunity/public/images/apps/730/69f7ebe2735c366c65c0b33dae00e12dc40edbe4.jpg and https://cdn.cloudflare.steamstatic.com/steamcommunity/public/images/apps/730/d1159d1a4d0e18da4d74f85dbb4934d7a92ace2b.ico but as you can see, the file path is a long seemingly random filename. This would require new information and an extra step.

There's the usual capsule https://cdn.cloudflare.steamstatic.com/steam/apps/730/capsule_184x69.jpg And a small capsule https://cdn.cloudflare.steamstatic.com/steam/apps/730/capsule_sm_120.jpg

I didn't realize that the offer code differed so much from the collection pages. However, that made it easy to add the smaller capsules. image

The offer page is already slow for large collections. This could make it worse, although the images are set to lazyload, i.e. load when scrolled to.