Removed blank bit of card on features with no short description

This commit is contained in:
Jacob
2017-09-05 14:31:26 +01:00
parent 06ac9f70c8
commit ad9ccbe7ef
3 changed files with 8 additions and 1 deletions

View File

@@ -6,6 +6,10 @@
margin-bottom: 8px;
}
.card.featureCard .bottom {
padding-bottom: 8px;
}
.containerMain.featureDescription {
white-space: pre-line;
}

View File

@@ -78,7 +78,7 @@
</div>
{{/if}}
</div>
{{#if description}}
{{#if hasCharacters (evaluateShortString charId description)}}
<div class="bottom flex">
{{#markdown}}{{evaluateShortString charId description}}{{/markdown}}
</div>

View File

@@ -56,6 +56,9 @@ Template.features.helpers({
var profs = Proficiencies.find({charId: this._id, type: "tool"});
return removeDuplicateProficiencies(profs);
},
hasCharacters: function(string){
return string.match(/\S/);
},
});
Template.features.events({