From f5c845ef5a6a68c60bdbf40363f89596f01e98df Mon Sep 17 00:00:00 2001 From: Gerard Date: Thu, 17 Jan 2019 09:50:53 +0100 Subject: [PATCH] tags not showing correctly fixed --- front/core/components/fetched-tags/index.js | 3 ++- front/core/components/fetched-tags/style.scss | 6 +++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/front/core/components/fetched-tags/index.js b/front/core/components/fetched-tags/index.js index 6b7ce2a46..d7f711dae 100644 --- a/front/core/components/fetched-tags/index.js +++ b/front/core/components/fetched-tags/index.js @@ -5,12 +5,13 @@ export default class FetchedTags { set item(value) { if (value) { let tags = []; - for (let i = 5; i < 5 + this.maxLength; i++) + for (let i = 5; i < 5 + this.maxLength; i++) { if (value['tag' + i]) { let tagValue = value['value' + i]; let tagKey = value['tag' + i]; tags.push({name: tagKey, value: tagValue, position: i - 5}); } + } this.tags = tags; } this._item = value; diff --git a/front/core/components/fetched-tags/style.scss b/front/core/components/fetched-tags/style.scss index 3a5f59d3c..ec96d1efa 100644 --- a/front/core/components/fetched-tags/style.scss +++ b/front/core/components/fetched-tags/style.scss @@ -1,6 +1,10 @@ @import "colors"; vn-fetched-tags { + &.noTitle vn-one { + display: none !important; + } + @media screen and (max-width: 1600px){ & vn-horizontal { flex-direction: column; @@ -47,7 +51,7 @@ vn-fetched-tags { text-align: center; font-size: 0.8em; height: 1.25em; - padding: 0.4em; + padding: 0.3em; width: 5em; border: 1px solid $secondary-font-color; }