From 1e1adb1afa06d3795a69b95f9867f8f39b2c8d61 Mon Sep 17 00:00:00 2001 From: Bianca Nenciu Date: Wed, 3 Apr 2019 12:35:27 +0300 Subject: [PATCH] FIX: Links in badge summary were not clickable. (#7303) --- .../templates/components/badge-card.hbs | 18 ++++++++---------- .../stylesheets/common/base/user-badges.scss | 17 +++++------------ 2 files changed, 13 insertions(+), 22 deletions(-) diff --git a/app/assets/javascripts/discourse/templates/components/badge-card.hbs b/app/assets/javascripts/discourse/templates/components/badge-card.hbs index 4d30b969767..787a539e0ae 100644 --- a/app/assets/javascripts/discourse/templates/components/badge-card.hbs +++ b/app/assets/javascripts/discourse/templates/components/badge-card.hbs @@ -5,15 +5,13 @@ {{d-icon "check"}} {{/if}}
- -
- {{icon-or-image badge}} + +
+
+

{{badge.name}}

+
{{{summary}}}
-
-
-

{{badge.name}}

-
{{{summary}}}
-
-
- +
diff --git a/app/assets/stylesheets/common/base/user-badges.scss b/app/assets/stylesheets/common/base/user-badges.scss index 304274f0550..b05e2bdacbf 100644 --- a/app/assets/stylesheets/common/base/user-badges.scss +++ b/app/assets/stylesheets/common/base/user-badges.scss @@ -147,14 +147,10 @@ display: flex; min-height: 128px; height: 100%; + padding: 0 10%; .badge-link { - display: flex; - flex: 1 1 auto; - padding: 0 10%; - @include breakpoint(mobile) { - padding: 0 5%; - } + color: $primary; } .badge-icon { @@ -237,12 +233,9 @@ margin-right: 1.5em; } .badge-contents { - .badge-link { - padding: 0 5%; - width: 90%; - h3 { - font-size: $font-up-3; - } + padding: 0 5%; + h3 { + font-size: $font-up-3; } } }