1knerd.knitter
We've rolled out a new book shelf component across several pages on LibraryThing — starting with tagmash and a few other discovery pages. It's a ground-up rewrite of the shelf code that's been running (mostly unchanged) for over a decade, and we think it's a meaningful improvement.
The old shelves calculated how many books to fit by doing math against a hardcoded pixel budget at render time. This worked reasonably well on the screen sizes of 2010, but on phones, wide monitors, or anything in between, it often got the math wrong — covers would get cut off on the right side, or you'd get awkward gaps where another book almost fit. The new shelves use CSS grid and let the browser handle layout, so books always fill the available space correctly at any width.
Here's what's new or improved:
- Responsive layout — the grid reflows correctly on phones, tablets, wide monitors, and everything in between. No more cut-off covers on the right edge.
-
Drag to resize —
NEW! You can now control how many rows you see ANY place we use these new shelf views.
Just grab the handle at the bottom-right corner and drag to show more (or fewer) rows.
Your preference is saved so it sticks across visits. On home page modules,
dragging saves directly to that module's settings — the same as if you'd gone into the
module preferences and changed the row count there. - Smart Pagination — prev/next controls let you page through long result sets even if you change the size of the view and the number of items on screen changes.
- Filter bar — many pages like tagmash now have a cleaner filter bar with Publication date and Media type dropdowns, replacing the old pillbox UI that didn't adapt well on small screens.
- "Have it" checkmarks — the green checkmarks showing which books are in your library are still there, now with slightly cleaner rendering.
If you spot anything odd let us know here.
(The work for this feature was done by @conceptDawg)
2SandraArdnas
3bnielsen
4keristars
I've attached screencaps of Tiny, Medium, and XXL settings.
i like the new system in that module!
5SandraArdnas
6rarm
7conceptDawg
8conceptDawg
9conceptDawg
10conceptDawg
>6 rarm: the list settings should now be respected. Your lists should be showing the correct number of items, and pagination should work too.
11norabelle414
13knerd.knitter
14knerd.knitter
15SandraArdnas
16kleh
This is great, but not self-evident on first viewing.
18keristars
I *like* the overlap, I think it's cute skumorphism! (and still showing overlapped when i refresh the homepage)
* waiting to update on my phone until the version on my tablet gets some features back that i use heavily

