FIx feedback from review

This commit is contained in:
Neil MacDougall 2021-05-25 14:10:50 +01:00
parent ca5a02acc9
commit a156beed09
2 changed files with 5 additions and 9 deletions

View File

@ -143,12 +143,13 @@ export default {
methods: {
// Cluster list number of items shown is configurbale via user preference
setClusterListHeight(a) {
setClusterListHeight(maxToShow) {
const el = this.$refs.clusterList;
const max = Math.min(maxToShow, this.clusters.length);
if (el) {
const $el = $(el);
const h = 34 * a;
const h = 34 * max;
$el.css('height', `${ h }px`);
}
@ -213,7 +214,7 @@ export default {
/>
<i v-if="clusterFilter.length > 0" class="icon icon-close" @click="clusterFilter=''" />
</div>
<div ref="clusterList" class="clusters" :class="{'fixed-height': showClusterSearch}">
<div ref="clusterList" class="clusters">
<div v-for="c in clusters" :key="c.id" @click="hide()">
<nuxt-link
v-if="c.ready"
@ -543,10 +544,6 @@ export default {
.clusters {
overflow-y: scroll;
overflow-x: hidden;
&.fixed-height {
height: $option-height * 4;
}
}
.none-matching {

View File

@ -183,8 +183,7 @@ export default {
</div>
</div>
<hr />
<div class="row">
<div class="row mt-20">
<div class="col span-4">
<LabeledSelect
v-model.number="menuMaxClusters"