officialfm/swag.fm — pull request #2 by happydawn (2012-12-21 02:59:21+00:00)
Title: Resize the track tiles using CSS instead of javascript

The trick here is to include the cover art as instead of a background image. The browser knows how to resize images while keeping the aspect ratio, and this keeps the tiles square without readjusting the height with javascript.

The drawback is that the code relies on the square dimensions of the cover art, but square cover art is a well-established convention.