From ad9ccbe7efcdb3b6d760a9cb71785116675f4e96 Mon Sep 17 00:00:00 2001 From: Jacob Date: Tue, 5 Sep 2017 14:31:26 +0100 Subject: [PATCH] Removed blank bit of card on features with no short description --- rpg-docs/client/views/character/features/features.css | 4 ++++ rpg-docs/client/views/character/features/features.html | 2 +- rpg-docs/client/views/character/features/features.js | 3 +++ 3 files changed, 8 insertions(+), 1 deletion(-) 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({