sphinx-copybutton icon jumps from right to left on click
Created originally on Bitbucket by Anonymous
Using sphinx-copybutton there is a really strange bug, that only happens with this theme, which is why I’m opening an issue here.
When you click the copy icon in a code cell, it jumps from the right to the left corner (see demo).
In chrome you can even reach “Schrödingers cat state”, where the icon is on the left and right at the same time, if you hold the button and hover over it at the same time.
My guess is that this has something to do with a combination of the creation of the pseudo element '::after' (which sphinx-copybutton uses for its tooltip) and the hover state.
Maybe you have an idea what is causing it and how to solve it.