X-Git-Url: https://git.auder.net/images/pieces/Cwda/bt.svg?a=blobdiff_plain;f=client%2Fsrc%2Fviews%2FVariants.vue;h=2a3f6cf02384f8b948ea1df983918f6bc90a1095;hb=620a88ede2ad25e66d9cbb521388ee53e4a564c0;hp=503be054c8878ab9e887c6965a86d6c94c2c15bd;hpb=cf2343cee5729c011770ace6d5b4f79d1ac3a2b6;p=vchess.git
diff --git a/client/src/views/Variants.vue b/client/src/views/Variants.vue
index 503be054..2a3f6cf0 100644
--- a/client/src/views/Variants.vue
+++ b/client/src/views/Variants.vue
@@ -1,15 +1,19 @@
-.row
- .nopadding.col-sm-12.col-md-10.col-md-offset-1.col-lg-8.col-lg-offset-2
- label(for="prefixFilter") Type first letters...
- input#prefixFilter(v-model="curPrefix")
- .variant.col-sm-12.col-md-5.col-lg-4(
- v-for="(v,idx) in filteredVariants"
- :class="{'col-md-offset-1': idx%2==0, 'col-lg-offset-2': idx%2==0}"
- )
- router-link(:to="getLink(v.name)")
- h4.boxtitle.text-center {{ v.name }}
- p.description.text-center {{ st.tr[v.desc] }}
+main
+ .row
+ .col-sm-12.col-md-10.col-md-offset-1.col-lg-8.col-lg-offset-2
+ input#prefixFilter(
+ v-model="curPrefix"
+ @input="setCurPrefix($event)"
+ :placeholder="st.tr['Prefix?']"
+ )
+ .variant.col-sm-12.col-md-5.col-lg-4(
+ v-for="(v,idx) in filteredVariants"
+ :class="getVclasses(filteredVariants, idx)"
+ )
+ router-link(:to="getLink(v.name)")
+ h4.boxtitle.text-center {{ v.name }}
+ p.description.text-center {{ st.tr[v.desc] }}
-
-