-
Notifications
You must be signed in to change notification settings - Fork 716
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
Misc Perseus renderer style fixes #8714
Misc Perseus renderer style fixes #8714
Conversation
- Fix error indicated by KFixedGridItem re: too-big span (the red error rectangle) - CSS was left behind when the LearningActivityBar was moved to AssessmentWrapper - bringing it over fixes the hint tooltip going off screen and aligns the tooltip - Fix `letter-spacing` being set to some silly number by Perseus, resulting in smushed letters - #solutionarea is 100% width now to avoid horizontal overflow (it would be larger for no apparent reason) - Some unnecessary vertical padding removed from .problem-area
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.
Nothing blocking - just some questions!
@@ -615,9 +617,10 @@ | |||
padding-right: 16px; | |||
} | |||
|
|||
.hint-btn-container { | |||
/deep/ .hint-btn-container { |
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.
Is this class still relevant any more? We've moved it out of the perseus renderer, so this might just be left over from my failing to clean it up?
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.
Ah yep I copied this over but ought to have cut, will remove shortly
@@ -15,7 +15,7 @@ | |||
/> | |||
</div> | |||
<KGrid> | |||
<KGridItem :layout="{ span: 8 }"> | |||
<KGridItem :layout="{ span: 4 }"> |
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 does seem to produce quite a narrow display on a fairly wide screen from your animation - maybe we should conditionalize these values for different aspect ratios?
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.
I've revised the layouts now to go :layout12={ span: 8 }
to get a ~66% width on larger screens. Then the default to 100% on medium or smaller which seems to avoid having too-squished on tablet & mobile without having it too wide on a larger screens.
The below video goes from ~1100px wide down to like ~200px wide at smallest. I then show it with the hints enabled because the layout affects it.
Previously the :layout="{ span: 4 }"
would be 4/12 at large, 4/8 at tablet and 4/4 at mobile - so when it was set to :layout="{span: 8}"
it complained about the span exceeding the num cols available (4 at mobile size).
better-layout.mp4
|
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.
I don't think exercises have ever looked so good! As long as @radinamatic greenlights this, we're good to go!
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.
Going to approve this to get it in, if any more issues do pop up in testing, let's open follow ups.
Was going to suggest exactly that, thank you! 🙏🏽 |
Summary
letter-spacing
being set to some silly number by Perseus, resulting in smushed lettersBEFORE
before.1.mp4
AFTER
after.mp4
References
No related issues (that I know of or have seen) - but spurred by notes in Slack from @radinamatic
Reviewer guidance
How does it look? Are there any kinds of exercise that I should review specifically? Some of these issues only affect those which have a grid of options and I saw no other issues with the fill-in-the-blank or drag and drop ones I have locally.
Testing checklist
PR process
Reviewer checklist
yarn
andpip
)