Skip to content

Commit 20498e8

Browse files
committed
Add assets badge
1 parent 00fe95a commit 20498e8

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/app/components/Header.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,10 @@ function GeneratorTitle({ title, gen }: GeneratorTitleProps) {
105105
<Link class="flex items-center cursor-pointer no-underline rounded p-1" href={cleanUrl(g.url)} onClick={() => setActive(false)}>
106106
{locale(`generator.${g.id}`)}
107107
{Object.keys(Icons).includes(g.id) ? Icons[g.id as keyof typeof Icons] : undefined}
108+
<div class="m-auto"></div>
109+
{g.tags?.filter(t => t === 'assets').map(t =>
110+
<div class="badge ml-2 mr-0 text-sm" style="--color: #555;">{t}</div>
111+
)}
108112
</Link>
109113
)}
110114
</div>}

src/styles/global.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,7 @@ nav li .btn svg {
239239
height: 16px;
240240
fill: var(--nav);
241241
margin-left: 8px;
242+
margin-right: 6px;
242243
transition: margin 0.2s;
243244
}
244245

@@ -248,6 +249,7 @@ nav li .btn svg {
248249

249250
.gen-results > a:hover svg {
250251
margin-left: 14px;
252+
margin-right: 0px;
251253
}
252254

253255
header .btn-menu > .btn {

0 commit comments

Comments
 (0)