New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Image previews are detached from dialog container #1221
Comments
Could it come from this changes? nextcloud-dialogs/lib/components/FilePicker/FilePreview.vue Lines 34 to 38 in 15c0215
cc @susnux |
Yes it is expected to be loaded to the body, but it should not be visible to the user. |
It adds the file to body to check if loading works and let the browser cache the image. It should not cause any issues, do you experience any issues? |
Can't find the source which says that appending is necessary. Browser should be able to do it in background, when you create img element (or use new Image())
Yes, same floating previews, as on provided screencasts, happen in 28 production (see ap header) . Also freezing the browser, with big amount of img tags appended.
Can we add the class to make it visually hidden, at least? |
To reproduce:
<img />
elements appended to<body />
flowing on the screenScreencast.from.01.02.2024.18.09.50.webm
Or:
<img />
elements appended to<body />
flowing on the screenScreencast.from.01.02.2024.18.13.04.webm
The text was updated successfully, but these errors were encountered: