Add assets badge
Some checks are pending
Deploy to GitHub Pages / build (push) Waiting to run
Deploy to GitHub Pages / deploy (push) Blocked by required conditions

This commit is contained in:
Misode
2025-01-24 02:14:32 +01:00
parent 00fe95a400
commit 20498e84c1
2 changed files with 6 additions and 0 deletions

View File

@@ -105,6 +105,10 @@ function GeneratorTitle({ title, gen }: GeneratorTitleProps) {
<Link class="flex items-center cursor-pointer no-underline rounded p-1" href={cleanUrl(g.url)} onClick={() => setActive(false)}> <Link class="flex items-center cursor-pointer no-underline rounded p-1" href={cleanUrl(g.url)} onClick={() => setActive(false)}>
{locale(`generator.${g.id}`)} {locale(`generator.${g.id}`)}
{Object.keys(Icons).includes(g.id) ? Icons[g.id as keyof typeof Icons] : undefined} {Object.keys(Icons).includes(g.id) ? Icons[g.id as keyof typeof Icons] : undefined}
<div class="m-auto"></div>
{g.tags?.filter(t => t === 'assets').map(t =>
<div class="badge ml-2 mr-0 text-sm" style="--color: #555;">{t}</div>
)}
</Link> </Link>
)} )}
</div>} </div>}

View File

@@ -239,6 +239,7 @@ nav li .btn svg {
height: 16px; height: 16px;
fill: var(--nav); fill: var(--nav);
margin-left: 8px; margin-left: 8px;
margin-right: 6px;
transition: margin 0.2s; transition: margin 0.2s;
} }
@@ -248,6 +249,7 @@ nav li .btn svg {
.gen-results > a:hover svg { .gen-results > a:hover svg {
margin-left: 14px; margin-left: 14px;
margin-right: 0px;
} }
header .btn-menu > .btn { header .btn-menu > .btn {