openlibrary icon indicating copy to clipboard operation
openlibrary copied to clipboard

Consolidate cover previews on search results

Open mekarpeles opened this issue 1 year ago • 3 comments

Problem

Cover previews take up a lot of real estate. We want to make room for #2405 / #9463

Expected behaviour / screenshots (ex: Figma design screenshots for UI feature)

From: Screenshot 2024-06-21 at 11 57 30 AM

To: Screenshot 2024-06-21 at 11 56 28 AM

From: Screenshot 2024-06-21 at 11 57 52 AM

To: Screenshot 2024-06-21 at 11 58 27 AM

Proposal & Constraints

No response

Leads

Related files

Stakeholders


Instructions for Contributors

  • Please run these commands to ensure your repository is up to date before creating a new branch to work on this issue and each time after pushing code to Github, because the pre-commit bot may add commits to your PRs upstream.

mekarpeles avatar Jun 21 '24 18:06 mekarpeles

Hi there! Can I try to work on this? I am not sure on how to achieve the wanted result, could you point me to some resources I could look at to get an idea of the code involved? Thank you!

Spedi avatar Jun 21 '24 19:06 Spedi

Hi there! Can I try to work on this? I am not sure on how to achieve the wanted result, could you point me to some resources I could look at to get an idea of the code involved? Thank you!

~~I think(can be wrong) it here: https://github.com/internetarchive/openlibrary/blob/master/openlibrary/templates/books/works-show.html#L17~~ Here: https://github.com/internetarchive/openlibrary/blob/master/openlibrary/macros/SearchResultsWork.html#L63 As I understand we can create another loop with templetor, and fix position of book covers by CSS.

bazylevnik0 avatar Jun 22 '24 07:06 bazylevnik0

@Spedi In my PR I am trying to solve only part of this issue, only cover images.

bazylevnik0 avatar Jun 22 '24 11:06 bazylevnik0

@mekarpeles would i be able to work on this issue, if its not closed?

psyren99 avatar Jan 17 '25 23:01 psyren99

This issue may already be completed. There's a PR by @bazylevnik0 already though it needs a rebase

mekarpeles avatar Jan 18 '25 15:01 mekarpeles

This issue may already be completed. There's a PR by @bazylevnik0 already though it needs a rebase

I wouldn't mind doing so

psyren99 avatar Jan 18 '25 18:01 psyren99

@mekarpeles could you assign me that issue? if available

mohitpaddhariya avatar Jan 31 '25 05:01 mohitpaddhariya

I think the attached PR simply needs to be reviewed.

mekarpeles avatar Jan 31 '25 17:01 mekarpeles

@cdrini It looks like the PR needs a rebase and one comment to address. I can help move this along since it's been sitting for a while

jess-ho avatar Sep 30 '25 16:09 jess-ho