-
Notifications
You must be signed in to change notification settings - Fork 743
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
Allow juxtaposed visual test #1168
Conversation
@ashmaroli Is this doing anything yet? I checked out the code but it looked (on my phone) like the raw text was just above the highlighted text. You said this PR is about juxtaposing (which, to be fair, it is) but for some reason, I imagined that what you meant was overlaying the samples. It also occurs to me that this seems like an alternative approach to what @miparnisari was trying to address with #852. |
The crux of this change is to place the
Nope.
Is it @miparnisari ? |
@ashmaroli Thanks for the quick answers. The graphic makes it clear. I do a lot of stuff on my phone so didn't see the difference at first :) Given it's not overlaying the text (not sure why I thought that), it's less of a clean fit for fixing the concern in #852. |
This isn't an alternative to my PR, but maybe @ashmaroli wants to implement the functionality? It would be a warning (hopefully at the top so that it's very visible) if the 2 columns don't match, or if there is an error in the "highlighted" column. |
Programmatically, that'd be hard to do with a |
@pyrmont This PR should complete my tasklist for improving the visual test app.. 😉 |
@ashmaroli I'm not sure if I'm pushing things too far but as you would have seen with ashmaroli#4 I've once again come in like a wrecking ball and excised a good chunk of your carefully handcrafted CSS. It looked to me no worse for wear but I only checked quickly; I may have missed something. It was all of course in the aid of simplifying things. I also thought the template should be renamed. Since this is a variation on the |
PS. I must admit this is also pretty cool. Perhaps a future enhancement would get rid of the juxtaposed template and merely make this something that happens as the width of the |
I didn't do that because juxtapositioning isn't always desirable. |
Oh yes, sorry to be clear, I agree it's not a good idea to do that in this PR. I just liked seeing the two divs side by side so much that it got me thinking that perhaps this should be the default (on sufficiently wide screens). Anyway, a discussion for another time :) |
@ashmaroli I think I had erroneously left the |
@pyrmont You left the The time has now come for it all to fall into place.. Further discussion will be continued at the downstream PR. |
@ashmaroli Ah, yes, now I remember. I should have labelled this |
props to @pyrmont
Proof-of-concept for enhancing visual test by juxtaposing
raw sample
andhighlighted result
.This is going to render an entirely different template to ease maintainability.
(However, the template has a header-n-footer divisions for completeness)