Browse Source

[FIX] customers grid style

Gogs 7 years ago
parent
commit
66a117a010
1 changed files with 5 additions and 2 deletions
  1. 5 2
      src/components/CustomersGrid.vue

+ 5 - 2
src/components/CustomersGrid.vue

@@ -1,7 +1,6 @@
 <template lang="pug">
     .customers-grid
-        template(v-for="customer in customers")
-            customer-card(:data="customer")
+        customer-card(v-for="customer in customers" :key="customer" :data="customer")
 </template>
 
 <script>
@@ -19,4 +18,8 @@
 </script>
 
 <style lang="sass">
+    .customers-grid
+        width: 100%
+        heigth: calc(100% - 30px)
+        margin: 0 15px
 </style>