Skip to content

Commit

Permalink
Make file previews properly fit
Browse files Browse the repository at this point in the history
Fix file preview to prevent overflowing vertically and also added CSS
property to make sure the ratio is preserved.
  • Loading branch information
Vincent Petry committed Sep 15, 2020
1 parent 3890178 commit 9d1d731
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apps/files/src/components/FileItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,8 @@ export default {
<style scoped>
.files-list-file-preview {
width: 36px;
height: 36px;
object-fit: contain;
}
.files-list-file-preview-small {
Expand Down
12 changes: 12 additions & 0 deletions changelog/unreleased/fix-file-previews-size
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
Bugfix: Fix behavior for foobar (in present tense, max length 80 chars)

We've fixed the behavior for foobar, a long-standing annoyance for ownCloud
users.

The text in the paragraphs is written in past tense. The last section is a list
of issue URLs, PR URLs and other URLs. The first issue ID (or the first PR ID,
in case there aren't any issue links) is used as the primary ID.

https://github.com/owncloud/phoenix/issues/1234
https://github.com/owncloud/phoenix/pull/55555
https://doc.owncloud.com/server/admin_manual/configuration/server/config_sample_php_parameters.html

0 comments on commit 9d1d731

Please sign in to comment.