Skip to content
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

[ENHANCEMENT] [MER-3412] Image component has fixed aspect ratio based on image dimensions #5228

Merged
merged 2 commits into from
Oct 30, 2024

Conversation

dtiwarATS
Copy link
Contributor

Hey @bsparks, could you please look at the PR. Thanks.

This PR contains changes for the following tickets:

  1. Changing number of attempts available in simple author/flowchart tool
  2. Image component has fixed aspect ratio based on image dimensions
  3. Duplicated Text Box (Ctrl+c) Issue

#2

Image.Resize.Based.on.Aspect.Ratio.mp4

@@ -114,6 +114,7 @@ const EditingCanvas: React.FC = () => {
// TODO: rename first param to partId
const handlePartConfigure = async (part: any, context: any) => {
/* console.log('[handlePartConfigure]', { part, context }); */
dispatch(setCurrentPartPropertyFocus({ focus: false }));
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These changes are related to #5211

@@ -122,7 +123,9 @@ export const generateMaxTryWorkflow = (
incorrect.destinationId,
false,
40,
options.threeTimesFeedback,
extraOptions.maxAttempt == '1' && incorrect.feedback != DEFAULT_INCORRECT_FEEDBACK
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the author sets the attempts to 1, the max attempt feedback should display on the first incorrect attempt unless the author has provided custom incorrect feedback. In such a case, the custom feedback should be displayed instead.

@nicocirio nicocirio merged commit 8ec1c32 into Simon-Initiative:master Oct 30, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants