Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃悰 Bug Report: File preview is stretched when viewing on mobile #2164

Closed
2 tasks done
m1ga opened this issue Oct 8, 2021 · 3 comments
Closed
2 tasks done

馃悰 Bug Report: File preview is stretched when viewing on mobile #2164

m1ga opened this issue Oct 8, 2021 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@m1ga
Copy link
Contributor

m1ga commented Oct 8, 2021

馃憻 Reproduction steps

Upload a file and open the preview.
When you open the file preview on a small screen the image is stretched. See screenshot below.

馃憤 Expected behavior

Image shouldn't be stretched:
Screenshot_20211009_011541

馃憥 Actual Behavior

Screenshot_20211009_011518

馃幉 Appwrite version

Version 0.10.x

馃捇 Operating system

Linux

馃П Your Environment

Firefox 92

馃憖 Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

馃彚 Have you read the Code of Conduct?

@m1ga m1ga added the bug Something isn't working label Oct 8, 2021
@m1ga
Copy link
Contributor Author

m1ga commented Oct 8, 2021

It can be fixed by adding
object-fit: contain to

.file-preview {
background: var(--config-color-background-input) url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAIElEQVQoU2NkYGAwZsAEZ9GFGIeIQix+wfQgyDODXSEAcUwGCrDSHgkAAAAASUVORK5CYII=) !important;
border: solid 1px #e2e2e2;
box-shadow: inset 0 0 3px #a0a0a0;
border-radius: 8px;
width: ~"calc(100% - 2px)";
max-height: 180px;
visibility: visible !important;
}

If you want me to do it please assign me to this ticket and I'm happy to apply the patch

@eldadfux
Copy link
Member

@m1ga I have assigned you, feel free to reach out if you need any help 馃憤

@TorstenDittmann TorstenDittmann added the waiting for release Fixed or implemented and waiting for a new version to be released label Oct 16, 2021
@TorstenDittmann
Copy link
Contributor

This got released now! Thanks a lot for your contribution @m1ga 馃憦馃徎

@eldadfux eldadfux removed the waiting for release Fixed or implemented and waiting for a new version to be released label Jan 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants