pydata / pydata-sphinx-theme

A clean, three-column Sphinx theme with Bootstrap for the PyData community
https://pydata-sphinx-theme.readthedocs.io
BSD 3-Clause "New" or "Revised" License
557 stars 300 forks source link

Provide copy button container sufficient min height #1810

Closed gabalafou closed 1 month ago

gabalafou commented 1 month ago

Code blocks with only one line of code did not have enough height, which clip the copy button, as the following screenshot shows:

not enough height, copy button clipped

This PR puts a minimum height on the container (div.highlight) if it contains a copy button. (The default copy button selector is "div.highlight pre.")

github-actions[bot] commented 1 month ago

Coverage report

This PR does not seem to contain any modification to coverable code.