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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make file previews properly fit #4073

Merged
merged 1 commit into from
Sep 16, 2020
Merged

Make file previews properly fit #4073

merged 1 commit into from
Sep 16, 2020

Conversation

PVince81
Copy link
Contributor

Description

Fix file preview to prevent overflowing vertically and also added CSS
property to make sure the ratio is preserved.

Related Issue

Fixes owncloud/product#232

Motivation and Context

How Has This Been Tested?

  • test environment:
  • test case 1:
  • test case 2:
  • ...

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Technical debt
  • Tests

Checklist:

  • Code changes
  • Unit tests added
  • Acceptance tests added
  • Documentation ticket raised:

Open tasks:

  • ...

@PVince81 PVince81 self-assigned this Sep 15, 2020
@PVince81
Copy link
Contributor Author

Before:
image

After:
image

Fix file preview to prevent overflowing vertically and also added CSS
property to make sure the ratio is preserved.
Copy link
Contributor

@LukasHirt LukasHirt left a comment

Choose a reason for hiding this comment

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

Nice! 🚀 There were also some ideas about cropping images in the thumbnails service. Maybe later if that will be done this would need to be checked.

@PVince81
Copy link
Contributor Author

Yeah, intelligent cropping could be cool.

Please note that here this problem also happens with OC 10, so it's independent from the backend so fits well as a generic fix.

@PVince81
Copy link
Contributor Author

fun stuff...
image

job restarted

@phil-davis phil-davis merged commit d539c0e into master Sep 16, 2020
@delete-merged-branch delete-merged-branch bot deleted the fix-preview-size branch September 16, 2020 03:14
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.

[QA] Phoenix thumbnails are misplaced
3 participants