Skip to content

Commit

Permalink
fix(template): separator in case of empty url (chartdb#355)
Browse files Browse the repository at this point in the history
  • Loading branch information
guyb1 authored Nov 6, 2024
1 parent e993476 commit 180886c
Showing 1 changed file with 15 additions and 13 deletions.
28 changes: 15 additions & 13 deletions src/pages/template-page/template-page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -249,21 +249,23 @@ const TemplatePageComponent: React.FC = () => {
</div>
<Separator />
{template.url ? (
<div>
<h4 className="mb-1 text-base font-semibold md:text-left">
Url
</h4>
<>
<div>
<h4 className="mb-1 text-base font-semibold md:text-left">
Url
</h4>

<Link
className="break-all text-sm text-muted-foreground"
href={`${template.url}?ref=chartdb`}
target="_blank"
>
{template.url}
</Link>
</div>
<Link
className="break-all text-sm text-muted-foreground"
href={`${template.url}?ref=chartdb`}
target="_blank"
>
{template.url}
</Link>
</div>
<Separator />
</>
) : null}
<Separator />
<div>
<h4 className="mb-1 text-base font-semibold md:text-left">
Tags
Expand Down

0 comments on commit 180886c

Please sign in to comment.