Bug 40821

Summary: Cover image column width in OPAC search results varies
Product: Koha Reporter: Caroline Cyr La Rose <caroline.cyr-la-rose>
Component: OPACAssignee: Owen Leonard <oleonard>
Status: CONFIRMED --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: david, fridolin.somers, lucas
Version: Main   
Hardware: All   
OS: All   
GIT URL: Initiative type: ---
Sponsorship status: --- Crowdfunding goal: 0
Patch complexity: --- Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
Circulation function:
Attachments: Search for "garden" in KTD OPAC

Description Caroline Cyr La Rose 2025-09-16 18:32:43 UTC
When the results have short titles (e.g. a search for "garden" in ktd) the image column is really wide. When the results have longer titles, the image column is narrower.

Note: the cover image used to be on the right, and didn't really change position depending on the size of the title.

To recreate:
1. Enable OPACAmazonCoverImages
2. Go to the OPAC and search for various terms
   - search term "garden": the titles are short, the image column is really wide
   - search term "poetry" : on long title, the image column is a nice size (same margin on each side of the image)
   - search term "design" : some of the titles are really long, the image column is very narrow (not the same margin on each side of the image)
Comment 1 Caroline Cyr La Rose 2025-09-17 13:11:04 UTC
Created attachment 186534 [details]
Search for "garden" in KTD OPAC
Comment 2 David Nind 2025-09-18 15:11:23 UTC
Confirmed that this is happening.

Tested on main and 25.05.x.
Comment 3 David Nind 2025-09-18 15:45:08 UTC
Additional testing:
- 24.05: does not happen for 24.05 - images in the OPAC are on the right-hand side.
- 24.11: confirmed, images are now on the left-hand side and are larger (more readable) than 24.05