Skip to content

Commit

Permalink
Merge pull request #6829 from owncloud/fix-space-projects-aspect-ratio
Browse files Browse the repository at this point in the history
Design polishing: Set a fixed aspect ratio for spaces image
  • Loading branch information
kulmann authored May 3, 2022
2 parents f0ed9bd + b4ff8b7 commit 1985fa5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Enhancement: Fixed aspect ratio for spaces images

We've set the spaces images to a fixed aspect ratio to make
sure that the same part of the image is always displayed.

https://github.com/owncloud/web/pull/6829
https://github.com/owncloud/web/issues/6555
9 changes: 6 additions & 3 deletions packages/web-app-files/src/views/spaces/Projects.vue
Original file line number Diff line number Diff line change
Expand Up @@ -285,8 +285,7 @@ export default defineComponent({
}
.oc-card-media-top {
width: 100%;
height: 150px;
aspect-ratio: 16/9;
}
.oc-card-media-top a {
Expand All @@ -302,7 +301,7 @@ export default defineComponent({
.space-image {
width: 100%;
height: 150px;
aspect-ratio: 16/9;
object-fit: cover;
}
Expand All @@ -317,5 +316,9 @@ export default defineComponent({
.space-disabled-indicator {
z-index: 999;
}
.spaces-list-projects {
aspect-ratio: 16/9;
}
}
</style>

0 comments on commit 1985fa5

Please sign in to comment.