fix: dark mode issues for assignment

This commit is contained in:
Jannat Patel
2025-03-24 14:57:46 +05:30
parent 89a348b154
commit 4d031ae55e
5 changed files with 24 additions and 9 deletions

View File

@@ -56,11 +56,11 @@ export class Upload {
app.mount(this.wrapper)
return
} else if (file.file_type == 'PDF') {
this.wrapper.innerHTML = `<iframe src="https://docs.google.com/viewer?url=${
this.wrapper.innerHTML = `<iframe src="${
window.location.origin
}${encodeURI(
file.file_url
)}&embedded=true" width='100%' height='700px' class="mb-4" type="application/pdf"></iframe>`
)}" width='100%' height='700px' class="mb-4" type="application/pdf"></iframe>`
return
} else {
this.wrapper.innerHTML = `<img class="mb-4" src=${encodeURI(