Skip to content

Commit

Permalink
Set a fixed aspect ratio for spaces image
Browse files Browse the repository at this point in the history
  • Loading branch information
lookacat committed Apr 28, 2022
1 parent 4f211ef commit df256e6
Showing 1 changed file with 6 additions and 3 deletions.
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 @@ -289,8 +289,7 @@ export default defineComponent({
}
.oc-card-media-top {
width: 100%;
height: 150px;
aspect-ratio: 16/9;
}
.oc-card-media-top a {
Expand All @@ -306,7 +305,7 @@ export default defineComponent({
.space-image {
width: 100%;
height: 150px;
aspect-ratio: 16/9;
object-fit: cover;
}
Expand All @@ -321,5 +320,9 @@ export default defineComponent({
.space-disabled-indicator {
z-index: 999;
}
li {
aspect-ratio: 16/9;
}
}
</style>

0 comments on commit df256e6

Please sign in to comment.