diff --git a/frontend/src/app/scripts/_components/ScriptInfoBlocks.tsx b/frontend/src/app/scripts/_components/ScriptInfoBlocks.tsx index 1c418c94c..cf5edfb22 100644 --- a/frontend/src/app/scripts/_components/ScriptInfoBlocks.tsx +++ b/frontend/src/app/scripts/_components/ScriptInfoBlocks.tsx @@ -90,7 +90,7 @@ export function LatestScripts({ items }: { items: Category[] }) { > <CardHeader> <CardTitle className="flex items-center gap-3"> - <div className="flex h-16 w-16 items-center justify-center rounded-lg bg-accent p-1"> + <div className="flex h-16 w-16 min-w-16 items-center justify-center rounded-lg bg-accent p-1"> <Image src={script.logo || `/${basePath}/logo.png`} unoptimized @@ -142,7 +142,7 @@ export function LatestScripts({ items }: { items: Category[] }) { export function MostViewedScripts({ items }: { items: Category[] }) { const mostViewedScripts = items.reduce((acc: Script[], category) => { const foundScripts = category.scripts.filter((script) => - mostPopularScripts.includes(script.name), + mostPopularScripts.includes(script.slug), ); return acc.concat(foundScripts); }, []); @@ -162,7 +162,7 @@ export function MostViewedScripts({ items }: { items: Category[] }) { > <CardHeader> <CardTitle className="flex items-center gap-3"> - <div className="flex max-h-16 min-h-16 min-w-16 max-w-16 items-center justify-center rounded-lg bg-accent p-1"> + <div className="flex size-16 min-w-16 items-center justify-center rounded-lg bg-accent p-1"> <Image unoptimized src={script.logo || `/${basePath}/logo.png`} diff --git a/frontend/src/config/siteConfig.tsx b/frontend/src/config/siteConfig.tsx index 5cc75fe19..8103e2147 100644 --- a/frontend/src/config/siteConfig.tsx +++ b/frontend/src/config/siteConfig.tsx @@ -42,11 +42,7 @@ export const navbarLinks = [ mobileHidden?: boolean; }[]; -export const mostPopularScripts = [ - "Proxmox VE Post Install", - "Docker", - "Home Assistant OS", -]; +export const mostPopularScripts = ["post-pve-install", "docker", "homeassistant"]; export const analytics = { url: "analytics.proxmoxve-scripts.com",