Skip to content

11377/fix/blank cover on edit book positioning#11378

Merged
cdrini merged 2 commits intointernetarchive:masterfrom
emggeorge:11377/fix/blank-cover-on-edit-book-positioning
Jan 8, 2026
Merged

11377/fix/blank cover on edit book positioning#11378
cdrini merged 2 commits intointernetarchive:masterfrom
emggeorge:11377/fix/blank-cover-on-edit-book-positioning

Conversation

@emggeorge
Copy link
Copy Markdown
Contributor

@emggeorge emggeorge commented Oct 28, 2025

Closes #11377

PR fixes blank cover box positioning when editing an edition.

Technical

This PR creates a new class named editEditionCover that shifts the SRPCoverBlank box left by 22px. This is the distance it needs to be moved to center it based on the predefined width of the cover and the size of the container for the cover.

Testing

Add a book that has no cover and select edit on the edition page.

Screenshot

image

Blank cover in the correct position

Screenshot 2025-10-27 211120

Blank cover unaffected by proposed changes on the edition page

Stakeholders

@github-project-automation github-project-automation bot moved this to Waiting Review/Merge from Staff in Ray's Project Nov 3, 2025
Copy link
Copy Markdown
Collaborator

@RayBB RayBB left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested and it works! Just one bit of feedback

Comment on lines 27 to 28
display: none;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can add it here instead and then we don't need to add a new css class to the html.

What do you think?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That is what I initially thought as well, but the SRPCoverBlank class is also used on the edition page of the book. Defining the left shift in SRPCoverBlank will change the blank cover to look like this on the edition page:

image

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch!

Copy link
Copy Markdown
Collaborator

@RayBB RayBB left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested and this is working well.

@cdrini can you merge it?

@emggeorge
Copy link
Copy Markdown
Contributor Author

Thanks for the help @RayBB! @cdrini, I know it has been a little while, but do you think this change could be merged? I just checked and the issue is still present on the site.

@github-actions github-actions bot added the Needs: Response Issues which require feedback from lead label Dec 31, 2025
@RayBB RayBB requested a review from cdrini January 8, 2026 23:06
@RayBB RayBB added Needs: Staff / Internal Reviewed a PR but don't have merge powers? Use this. and removed Needs: Response Issues which require feedback from lead labels Jan 8, 2026
@RayBB
Copy link
Copy Markdown
Collaborator

RayBB commented Jan 8, 2026

Bumping @cdrini for merging

@cdrini
Copy link
Copy Markdown
Collaborator

cdrini commented Jan 8, 2026

Nice thank you! This whole page I reckon needs a bit of rejiggering into more modern CSS to allow us to better position things, but this seems like a great fix for now, thank you @emggeorge !

@cdrini cdrini merged commit a6f107b into internetarchive:master Jan 8, 2026
5 checks passed
@github-project-automation github-project-automation bot moved this from Waiting Review/Merge from Staff to Done in Ray's Project Jan 8, 2026
mystic-06 pushed a commit to mystic-06/openlibrary that referenced this pull request Jan 11, 2026
* add class to make changes specificall on blank cover in edition edit

* shift cover so that it is centered in its box
lokesh pushed a commit to lokesh/openlibrary that referenced this pull request Feb 4, 2026
* add class to make changes specificall on blank cover in edition edit

* shift cover so that it is centered in its box
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Needs: Staff / Internal Reviewed a PR but don't have merge powers? Use this.

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Blank cover on edit edition cover not positioned correctly

3 participants