In https://github.com/executablebooks/sphinx-book-theme/issues/248 I also uncovered a bug (I think) in sphinx-copybutton. Behavior like this: Basically, if some other HTML causes the code cell to shrink in width, the copybutton icon does not move with it. 