You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This CSS is also used for .bd-code-snippet where there is no preview above and the code doesn't want to get in the way of the copy to clipboard button so it makes sense there.
Perhaps a quick easy fix could be to overrule the above, just for the examples.
Thanks for opening this issue @coliff
Yes, as you pointed out, it was done so the code isn't in the way of the copy-to-clipboard button for cases like the ones in the homepage.
I don't remember if there was an edge case really forcing us to have this extra margin everywhere.
If you agree I'd be happy to make a quick PR.
Yep, you can try something and we will together try to find all the edge cases. Thanks for that :)
Prerequisites
Describe the issue
Example on: https://getbootstrap.com/docs/5.3/forms/form-control/#example
screen: (red border added by me to highlight issue more clearly)
The code block has a 30px right-margin. I assume this is because the CSS rule used:
This CSS is also used for
.bd-code-snippet
where there is no preview above and the code doesn't want to get in the way of the copy to clipboard button so it makes sense there.Perhaps a quick easy fix could be to overrule the above, just for the examples.
If you agree I'd be happy to make a quick PR.
Reduced test cases
see above:
What operating system(s) are you seeing the problem on?
Windows
What browser(s) are you seeing the problem on?
Microsoft Edge
What version of Bootstrap are you using?
v5.3.2
The text was updated successfully, but these errors were encountered: