-
Notifications
You must be signed in to change notification settings - Fork 1.3k
bs4_book(): Fix alignment of text blocks within rmdnote divs
#1175
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
Conversation
cderv
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will reduce the pre background and code won't be aligned anymore with the outside text
From the issue,
Code should occupy full width of block
Do we want either the opposite and get the pre background to be aligned with the other pre background outside of rmdnote box ?
To illustrate the above, with this PR here is what it looks like:

Code and text in the box are no more aligned which does not feel right to me.
Is the screenshot posted in #1084 what it should look like ? Because it seems that the link in mastering-shiny already looks like that.
Yes I guess I do not understand what the issue is. |
|
@maelle see answer in #1084 (comment)
So this PR is not yet quite right. Do you have time to change or should I do this ? |
|
cc @apreshill as we discussed it yesterday. |
|
what is your feeling on this one @apreshill ? I'll tweak the implementation following what we decide. |
|
I agree @cderv - I tend to prefer keeping the text aligned inside the note box. |
|
So background full width and text align it will be! Thanks. |
bs4_book(): Fix alignment of text blocks within rmdnote divs
apreshill
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM- thanks!



Fix #1084 (if I understood the problem correctly)