Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide copy button container sufficient min height #1810

Conversation

gabalafou
Copy link
Collaborator

@gabalafou gabalafou commented May 13, 2024

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.")

Copy link

Coverage report

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

@trallard trallard added tag: accessibility Issues related to accessibility issues or efforts tag: component Issues or improvements associated with a given component in the theme labels May 13, 2024
@trallard trallard merged commit cf29b9c into pydata:main May 13, 2024
20 checks passed
ivanov pushed a commit to ivanov/pydata-sphinx-theme that referenced this pull request Jun 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tag: accessibility Issues related to accessibility issues or efforts tag: component Issues or improvements associated with a given component in the theme
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants