question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"prev-next-bottom" improper display.

See original GitHub issue

Describe the bug

The buttons at the bottom of each page for the next and the previous pages will sometimes get mushed to the left of the page and clip into the page footer.

To Reproduce

Steps to reproduce the behavior:

  1. For some page in the book, make the title of the next page so long that it wraps inside the next page button.
  2. Make the title of the previous page short so it won’t wrap.
  3. See how, for the current page, the buttons lose some styles and aren’t properly aligned.

Notice how this also happens if the previous button wraps its text but the next doesn’t

Expected behavior

Despite either the previous page or next page buttons wrapping their text, the buttons should display with their respective anchor styles and not clip into the page footer.

Repo.

Example

Improper:

image

Proper:

image

Environment

Github-Workflow ubuntu-latest environment.

  • Python Version: 3.7
  • Package versions or output of jupyter-book --version:
Jupyter Book: 0.8.3
MyST-NB: 0.10.1
Sphinx Book Theme: 0.0.38
MyST-Parser: 0.12.10
Jupyter-Cache: 0.4.1
NbClient: 0.5.1
  • Operating System: Ubuntu-latest, though this also happens when building on Windows 10.

Additional context

I doubt this is a Sphinx issue. Rather, I’ll look into the jupyter book theme and see what can be done to fix this.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
choldgrafcommented, Nov 22, 2020

Thanks for posting your fix for this 👍 - I wonder if the improvements that @pradyunsg made in the SBT will also address any of this

1reaction
MantiMantillacommented, Nov 16, 2020

Including the following CSS in the _static/ directory fixes the issue and seems to not break anything else. I’ll keep it as a temporary solution until this gets addressed.

.prev-next-bottom {
  width: 100% !important;
}
.prev-next-bottom > a{
  color: rgba(0,0,0,.65) !important;
}

I don’t think the !important tag is necessary for the width rule but I’ll keep it there just to be safe. This is more of a workaround since it might not fix the issue for REALLY long titles.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Configuration is not working - WordPress.org
... showing prev next bottom. I already use Owl Slider/Carousel 2 for others sites with he same theme Unwind, and works fine. I...
Read more >
10. CMDTUX Messages 900-999
905 ERROR: Memory allocation failure ERROR: Memory allocation failure See Also tmloadcf (1) 906 ERROR: Memory allocation failure ERROR: Memory allocation failure See Also tmloadcf (1)...
Read more >
55-4-110 - Display of registration plates Manner Penalty for ...
Display of registration plates Manner Penalty for violation. (a) The registration plate issued for passenger motor vehicles shall be attached on the rear...
Read more >
Bottom - Space Telescope Science Institute
[Top] [Prev] [Next] [Bottom]. Index. A. abbreviations. in this manual F-1. aberrations. FOC images 4-7. absolute photometry.
Read more >
CHAPTER 3 Energy Mode and Operation with BatchMin
Second, the atoms defining improper torsions are not specified by the ... Thus the intermediate energies which are listed to the screen ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found