diff --git a/rpg-docs/client/views/character/features/features.css b/rpg-docs/client/views/character/features/features.css index 6d6d9e6c..520f9e55 100644 --- a/rpg-docs/client/views/character/features/features.css +++ b/rpg-docs/client/views/character/features/features.css @@ -6,6 +6,10 @@ margin-bottom: 8px; } +.card.featureCard .bottom { + padding-bottom: 8px; +} + .containerMain.featureDescription { white-space: pre-line; } diff --git a/rpg-docs/client/views/character/features/features.html b/rpg-docs/client/views/character/features/features.html index b3499845..ca7f95b9 100644 --- a/rpg-docs/client/views/character/features/features.html +++ b/rpg-docs/client/views/character/features/features.html @@ -78,7 +78,7 @@ {{/if}} - {{#if description}} + {{#if hasCharacters (evaluateShortString charId description)}}
{{#markdown}}{{evaluateShortString charId description}}{{/markdown}}
diff --git a/rpg-docs/client/views/character/features/features.js b/rpg-docs/client/views/character/features/features.js index 2ab8f277..92a5eb06 100644 --- a/rpg-docs/client/views/character/features/features.js +++ b/rpg-docs/client/views/character/features/features.js @@ -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({