Merge pull request #132 from Dumbgenius/enhancement-blank-descriptions

Removed blank bit of card on features with no short description
This commit is contained in:
Stefan Zermatten
2017-09-07 12:03:32 +02:00
committed by GitHub
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({