-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Address 4091/RCT #18: Set max-height for ItemSelectionInputResponse images #4229
Conversation
|
||
<style> | ||
.item-selection-input-response-content img { | ||
max-height: 150px; |
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 think maybe this could be a bit smaller?
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.
@seanlip Also added a limit of 200px for all itemselectioninput images (see OP for example images) |
@@ -36,6 +36,10 @@ md-checkbox.item-selection-input-checkbox.md-default-theme.md-checked .md-icon { | |||
border-bottom: 0px; | |||
} | |||
|
|||
.item-selection-input-container img { | |||
max-height: 200px; |
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.
For this part, don't you need to set max-width as well (so it doesn't spill out of the card)?
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.
Hmm, in the images I've tried it doesn't overflow the width. At least in FF, that seems to be enforced by this.
It looks like the card itself can get cut off if the screen is too small, but that's a separate issue.
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, just one more small thing. Thanks!
Ah ok, sounds good then. Thanks @AllanYangZhou! |
Codecov Report
@@ Coverage Diff @@
## develop #4229 +/- ##
========================================
Coverage 44.51% 44.51%
========================================
Files 367 367
Lines 22517 22517
Branches 3578 3578
========================================
Hits 10023 10023
Misses 12494 12494 Continue to review full report at Codecov.
|
…t-p2 * upstream/develop: (124 commits) Introduce a correctness_feedback_enabled field at the exploration level and make corresponding updates to the states dict. (oppia#4235) Migrate next_skill_id to next_skill_index. (oppia#4237) Fix oppia#4224: Set Admin Badge in place. (oppia#4236) Fix part of oppia#3950: Removed jinja templates in settings_tab in exploration editor (oppia#4209) Routine update of translations. (oppia#4234) Refactor outcomes, hints, and solutions to use SubtitledHtml (oppia#4233) Fix oppia#4202: Show Hints and Solutions in modals (oppia#4203) Fixes 3741: Remove action parameter when moderator unpublishes exploration. (oppia#4213) Address 4091/RCT oppia#18: Set max-height for ItemSelectionInputResponse images (oppia#4229) Add a job to generate statistics models for explorations which do not have them yet. (oppia#4228) Fix a bunch of issues related to the maintenance.html page not loading Angular properly. (oppia#4227) Fix some errors in e2e tests discovered during release testing. (oppia#4226) Update AUTHORS, CONTRIBUTORS, about.html, and CHANGELOG for the 2.5.7 release (oppia#4225) Simplify patterns for using promises in the codebase. (oppia#4204) fix for oppia#4144 - misaligned data (oppia#4205) Fix oppia#4216 and oppia#4218: link correctly to static assets in interactions. (oppia#4219) Fix one last error in the GenerateStatsV1Job (oppia#4215) Fix oppia#3891: pattern check for directly referenced directives implemented. (oppia#4187) convert str versions to int (oppia#4210) Fix error in GenerateV1StatisticsJob (oppia#4208) ...
Before
After