Skip to content

Fileuploader fixed - #124

Merged
veronika-tseleva-cleantalk merged 1 commit into
devfrom
fix_55346
Aug 21, 2026
Merged

Fileuploader fixed#124
veronika-tseleva-cleantalk merged 1 commit into
devfrom
fix_55346

Conversation

@veronika-tseleva-cleantalk

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI lite review requested due to automatic review settings August 21, 2026 11:32
@veronika-tseleva-cleantalk
veronika-tseleva-cleantalk merged commit 481d797 into dev Aug 21, 2026
1 check passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR adjusts the screenshot-capture logic in FileUploader (dom-to-image/html2canvas path) to address viewport sizing issues by moving sizing control into html2canvas’s onclone hook, and updates the distributed bundles accordingly.

Changes:

  • Tweaks the dom-to-image blob-size check formatting (no functional change).
  • Replaces html2canvas windowWidth/windowHeight options with explicit cloned-document sizing in onclone.
  • Regenerates dist/ bundles to include the updated screenshot logic.

Reviewed changes

Copilot reviewed 1 out of 4 changed files in this pull request and generated 1 comment.

File Description
js/src/fileuploader.js Updates html2canvas screenshot cloning/sizing behavior.
dist/doboard-widget-bundle.js Built bundle updated with the same screenshot changes.
dist/doboard-widget-bundle.min.js Minified bundle updated with the same screenshot changes.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread js/src/fileuploader.js
Comment on lines +502 to +506
clonedDoc.documentElement.style.width = window.innerWidth + 'px';
clonedDoc.documentElement.style.height = window.innerHeight + 'px';
clonedDoc.body.style.width = window.innerWidth + 'px';
clonedDoc.body.style.height = window.innerHeight + 'px';
clonedDoc.body.style.minHeight = window.innerHeight + 'px';
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