Skip to content

Commit

Permalink
Issue #fix: Iframe height issue fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
gouravmore committed Oct 14, 2024
1 parent 73787f2 commit 6e1914f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/all-dev-tn.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,15 @@ jobs:
node-version: "18"

- name: Install AWS CLI
uses: aws-actions/setup-aws-cli@v2
with:
version: 2
run: |
sudo DEBIAN_FRONTEND=noninteractive apt-get update
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y awscli
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v2
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ${{ secrets.AWS_REGION }}
run: |
aws configure set aws_access_key_id ${{ secrets.AWS_ACCESS_KEY_ID }}
aws configure set aws_secret_access_key ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws configure set default.region ${{ secrets.AWS_REGION }}
- name: Clean up node_modules and package-lock.json
run: |
Expand Down Expand Up @@ -86,10 +85,11 @@ jobs:

- name: Debug Environment Variables
run: |
echo "REACT_APP_AWS_S3_BUCKET_NAME: ${{ env.REACT_APP_AWS_S3_BUCKET_NAME }}"
echo "AWS_REGION: ${{ env.AWS_REGION }}"
echo "REACT_APP_AWS_S3_BUCKET_NAME: $REACT_APP_AWS_S3_BUCKET_NAME"
echo "AWS_REGION: $AWS_REGION"
echo "secrate": ${{ vars.REACT_APP_AWS_S3_BUCKET_NAME }}
- name: CloudFront Invalidation
- name: Cloudfront Invalidation
uses: chetan/invalidate-cloudfront-action@master
env:
DISTRIBUTION: ${{ secrets.AWS_DISTRIBUTION }}
Expand Down
3 changes: 2 additions & 1 deletion src/views/Practice/Practice.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -689,7 +689,8 @@ const Practice = () => {
const contentSourceData =
questions[currentQuestion]?.contentSourceData || [];
const stringLengths = contentSourceData.map((item) => item.text.length);
const length = stringLengths[0];
const length =
mechanism?.name != "readTheImage" ? stringLengths[0] : 1000;
window.parent.postMessage({ type: "stringLengths", length }, "*");
}
}
Expand Down

0 comments on commit 6e1914f

Please sign in to comment.