Browse Source

CmsKit - Fix broken tags design

pull/12987/head
Enis Necipoglu 4 years ago
parent
commit
0661a1f6ef
  1. 9
      modules/cms-kit/src/Volo.CmsKit.Public.Web/Pages/CmsKit/Shared/Components/Tags/Default.cshtml

9
modules/cms-kit/src/Volo.CmsKit.Public.Web/Pages/CmsKit/Shared/Components/Tags/Default.cshtml

@ -10,19 +10,14 @@
{ {
if (Model.UrlFormat.IsNullOrWhiteSpace()) if (Model.UrlFormat.IsNullOrWhiteSpace())
{ {
<span class="badge rounded-pill bg-light text-dark px-3 py-2 cmskit-tag font-weight-normal">
<span class="badge bg-light px-3 py-2 cmskit-tag font-weight-normal">
@tag.Name @tag.Name
</span> </span>
} }
else else
{ {
var formattedUrl = Model.UrlFormat.Replace("{TagId}", tag.Id.ToString()); var formattedUrl = Model.UrlFormat.Replace("{TagId}", tag.Id.ToString());
<a href="@formattedUrl"> <a href="@formattedUrl"><span class="badge rounded-pill bg-light text-dark px-3 py-2 cmskit-tag font-weight-normal">@tag.Name</span></a>
<span class="badge bg-light px-3 py-2 cmskit-tag font-weight-normal">
@tag.Name
</span>
</a>
} }
} }
} }

Loading…
Cancel
Save