1
0
mirror of https://github.com/community-scripts/ProxmoxVE.git synced 2025-02-01 17:51:49 +00:00

Update page.tsx

This commit is contained in:
CanbiZ 2025-01-27 17:49:14 +01:00 committed by GitHub
parent 661654987d
commit 452012529c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -164,24 +164,21 @@ const CategoryView = () => {
onClick={() => handleScriptClick(script.slug)} onClick={() => handleScriptClick(script.slug)}
> >
<CardContent className="flex flex-col gap-4"> <CardContent className="flex flex-col gap-4">
<div className="flex justify-between"> <h3 className="text-lg font-bold script-text text-center">{script.name}</h3>
<h3 className="text-lg font-bold script-text">{script.name}</h3> <img
{formattedBadge(script.type || "misc")} src={script.logo || defaultLogo}
</div> alt={script.name || "Script logo"}
<p className="text-sm text-gray-500"> className="h-12 w-12 object-contain mx-auto"
/>
<p className="text-sm text-gray-500 text-center">
<b>Created at:</b> {script.date_created || "No date available"} <b>Created at:</b> {script.date_created || "No date available"}
</p> </p>
<p <p
className="text-sm text-gray-700 hover:text-gray-900" className="text-sm text-gray-700 hover:text-gray-900 text-center"
title={script.description || "No description available."} title={script.description || "No description available."}
> >
{truncateDescription(script.description || "No description available.")} {truncateDescription(script.description || "No description available.")}
</p> </p>
<img
src={script.logo || defaultLogo}
alt={script.name || "Script logo"}
className="h-16 w-16 object-contain mx-auto mt-4"
/>
{renderResources(script)} {renderResources(script)}
</CardContent> </CardContent>
</Card> </Card>