-
-
Notifications
You must be signed in to change notification settings - Fork 51
lineNumber option #19
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
how? I would prefer this being done via CSS from the user-side since I consider this as a rare situation. For example, .diff.diff-inline thead th:nth-child(1),
.diff.diff-inline thead th:nth-child(2),
.diff.diff-inline tbody tr[data-type] > th:nth-child(1),
.diff.diff-inline tbody tr[data-type] > th:nth-child(2) {
display: none;
} Mmm... the side-by-side one seems not able to be done like the above one. But if your issue comes from a narrow modal, I think that side-by-side is the widest layout and will be never working as intended? |
I have fixed phan errors in |
wider modal is not a solution because there are mostly small changes in a forum environment also line numbers in a table is not good for a responsive design. I'd prefer a CSS option for this too, maybe we can add new class names for |
fix phan
But I think pure CSS solution cannot cover the php-diff/src/Renderer/Html/SideBySide.php Lines 58 to 64 in 1140ec2
Another solution without add an extra option is creating something like |
Another solution could be removing |
Afaik, there is no |
Whoops! You're right, i completely forgot it. Let's think about a CSS solution little more -- |
Thanks. Added in |
Changing HTML renderers' output to
could be BC break I guess. People may discuss and implement in |
Adds lineNumber option for HTML renderers.
I'm building a Flarum extension and line numbers ruins the display in a modal.