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 6d88c73
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions packages/web-app-files/src/views/spaces/Projects.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@
oc-child-width-1-5@xl
"
>
<li v-for="space in spaces" :key="space.id" class="oc-mb-m">
<li v-for="space in spaces" :key="space.id" class="oc-mb-m" style="aspect-ratio: 16/9;">
<div
class="spaces-list-card oc-card oc-card-default oc-rounded"
:data-space-id="space.id"
:class="getSpaceCardAdditionalClass(space)"
>
<div class="oc-card-media-top oc-border-b">
<div class="oc-card-media-top oc-border-b" style="">
<router-link :to="getSpaceProjectRoute(space)">
<oc-tag
v-if="space.disabled"
Expand Down 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 Down

0 comments on commit 6d88c73

Please sign in to comment.