pfp cropping #12

Merged
justtemmie merged 11 commits from pfp-cropping into main 2025-07-05 17:34:28 +00:00
2 changed files with 3 additions and 3 deletions
Showing only changes of commit e9717b137e - Show all commits

View file

@ -55,7 +55,7 @@ async function cropImage() {
}
}
});
const file = new File([blob], 'image.png', { type: 'image/png' })
const file = new File([blob], 'preview.png', { type: 'image/png' })
reader.readAsDataURL(file)
}
});

View file

@ -46,8 +46,8 @@ if (!user) {
}
let newPfpFile: File;
const isCropPopupVisible = ref(false); // State to manage the visibility of the CropPopup
const cropImageSrc = ref(''); // State to hold the image source for cropping
const isCropPopupVisible = ref(false);
const cropImageSrc = ref('');
async function saveChanges() {
if (!user) return;