change image size and ratio in drag and tick game

This commit is contained in:
2025-09-04 13:13:52 +05:30
parent e02e00c4de
commit 83663a9d33
7 changed files with 28 additions and 10 deletions

View File

@@ -183,9 +183,9 @@ import Layout from '../../layouts/Layout.astro';
// console.log(audioData)
const {left_image1, left_image2, left_image3, left_image4, right_image1, right_image2, right_image3, right_image4} = data;
if(isMobile){
imageCustomWidth = "?width=100";
imageCustomWidth = "?width=60";
} else{
imageCustomWidth = "?width=100";
imageCustomWidth = "?width=60";
}
const assetsURL = "https://game-du.teachertrainingkolkata.in/assets/"
assetsList.left_image1 = assetsURL + left_image1 + imageCustomWidth;