Skip to content

Commit f7ac501

Browse files
authored
fix tag (#157)
1 parent 019d766 commit f7ac501

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/components/ui/Tag.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
import { twMerge } from 'tailwind-merge';
33
4-
const { tag = 'v6', classes = {} } = Astro.props;
4+
const { tag = '<span class="hidden sm:inline">New in </span>V6', classes = {} } = Astro.props;
55
---
66

7-
<span class={twMerge("rounded-full text-xs text-white bg-sky-300 dark:text-neutral-300 dark:bg-sky-600 px-2 shadow-sm shadow-black/20 ml-2", classes)}>{ tag }</span>
7+
<span class={twMerge("rounded-full text-xs text-white bg-sky-300 dark:text-neutral-300 dark:bg-sky-600 px-2 shadow-sm shadow-black/20 ml-2", classes)}><Fragment set:html={tag} /></span>

src/pages/get-supporter-edition.astro

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,8 +299,9 @@ const metadata = {
299299
available: [true, true],
300300
},
301301
{
302-
feature: 'Statistics on your installation <span class="rounded-full text-xs text-white bg-sky-300 dark:text-neutral-300 dark:bg-sky-600 px-2 shadow-sm shadow-black/20">v6</span>',
302+
feature: 'Statistics on your installation',
303303
available: [false, true],
304+
isV6: true,
304305
}
305306

306307
]}

0 commit comments

Comments
 (0)