Fix: Add pins id for pins elements / fix padding for pins

This commit is contained in:
winkidney
2019-03-01 17:11:44 +08:00
committed by Isaac Bythewood
parent 6df4a90d8a
commit b46cc6b2d3
3 changed files with 2 additions and 3 deletions

View File

@@ -178,8 +178,6 @@ textarea {
/* Start Pins */ /* Start Pins */
#pins { #pins {
top: 80px; top: 80px;
padding-left: 60px;
padding-right: 60px;
} }
.pin { .pin {

View File

@@ -177,6 +177,7 @@ Vue.component('pin-container', {
); );
}, },
); );
window.addEventListener("resize", this.reflow, {})
}, },
mounted: function() { mounted: function() {
this.reflow(); this.reflow();

View File

@@ -1,7 +1,7 @@
{% verbatim %} {% verbatim %}
<script type="text/x-template" id="pin-container-template"> <script type="text/x-template" id="pin-container-template">
<div> <div id="pins">
<template v-for="(item, index) in pins"> <template v-for="(item, index) in pins">
<pin <pin
:pin="item" :pin="item"