"Read more" button should not be added if it takes up as much space as the hidden text #9329
Labels
Lead: @RayBB
Issues overseen by Ray (Onboarding & Documentation Lead) [manages]
Needs: Staff / Internal
Reviewed a PR but don't have merge powers? Use this.
Priority: 3
Issues that we can consider at our leisure. [managed]
Team: Front-end
Issues belonging to the Front-end team [experimental tag]
Theme: Design
Issues related to UI design, branding, etc. [managed]
Type: Bug
Something isn't working. [managed]
Problem
Evidence / Screenshot
Relevant URL(s)
E.g. https://openlibrary.org/books/OL8978501M/Robin_Hood
Reproducing the bug
Context
Notes from this Issue's Lead
Proposal & constraints
Perhaps we can update the
+ 1
here:openlibrary/openlibrary/plugins/openlibrary/js/readmore.js
Line 58 in 73b70f6
To instead be the height of the
.read-more__toggle--more
button. We might need to capture that height in the constructor though, before the read more button is potentially hidden!Related files
https://github.com/internetarchive/openlibrary/blob/73b70f6b997c401caf2fe8078a6296c8f3167ee5/openlibrary/plugins/openlibrary/js/readmore.js
Stakeholders
@RayBB
Note: Before making a new branch or updating an existing one, please ensure your branch is up to date.
The text was updated successfully, but these errors were encountered: