Removed blank bit of card on features with no short description
This commit is contained in:
@@ -6,6 +6,10 @@
|
|||||||
margin-bottom: 8px;
|
margin-bottom: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.card.featureCard .bottom {
|
||||||
|
padding-bottom: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
.containerMain.featureDescription {
|
.containerMain.featureDescription {
|
||||||
white-space: pre-line;
|
white-space: pre-line;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -78,7 +78,7 @@
|
|||||||
</div>
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</div>
|
</div>
|
||||||
{{#if description}}
|
{{#if hasCharacters (evaluateShortString charId description)}}
|
||||||
<div class="bottom flex">
|
<div class="bottom flex">
|
||||||
{{#markdown}}{{evaluateShortString charId description}}{{/markdown}}
|
{{#markdown}}{{evaluateShortString charId description}}{{/markdown}}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -56,6 +56,9 @@ Template.features.helpers({
|
|||||||
var profs = Proficiencies.find({charId: this._id, type: "tool"});
|
var profs = Proficiencies.find({charId: this._id, type: "tool"});
|
||||||
return removeDuplicateProficiencies(profs);
|
return removeDuplicateProficiencies(profs);
|
||||||
},
|
},
|
||||||
|
hasCharacters: function(string){
|
||||||
|
return string.match(/\S/);
|
||||||
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
Template.features.events({
|
Template.features.events({
|
||||||
|
|||||||
Reference in New Issue
Block a user