Skip to content

Conversation

@dieghernan
Copy link
Contributor

Consistent css rules and button alignment for <pre> blocks in small screens (may fix #2969 ).

All pre codes in small screens (except those included in indented elements: <li>,<blockquote> extend to the whole width of the screen. Also the copy button is adjusted for those cases so it doesn’t overflow the <pre>.

(Opinionated) Regardless if the <pre> block is extended or not, it always displays as squared (round border removed) for consistency.

Examples included in vignettes/test/rendering.Rmd for testing.

dieghernan added a commit to rOpenSpain/rostemplate that referenced this pull request Feb 2, 2026
dieghernan added a commit to dieghernan/gitdevr that referenced this pull request Feb 2, 2026
dieghernan added a commit to rOpenGov/rogtemplate that referenced this pull request Feb 2, 2026
@dieghernan dieghernan force-pushed the consistent-pre-blocks branch from 6d90fbe to 6a947f8 Compare February 2, 2026 22:59
@dieghernan
Copy link
Contributor Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Different rendering of <pre> blocks

1 participant