mirror of
https://github.com/community-scripts/ProxmoxVE
synced 2025-02-04 15:00:16 +00:00
Update page.tsx
This commit is contained in:
parent
4de8c1c358
commit
c3a21069d2
@ -15,13 +15,13 @@ const MAX_LOGOS = 5; // Max logos to display at once
|
|||||||
const formattedBadge = (type: string) => {
|
const formattedBadge = (type: string) => {
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case "vm":
|
case "vm":
|
||||||
return <Badge className="text-blue-500/75 border-blue-500/75">VM</Badge>;
|
return <Badge className="text-blue-500/75 border-blue-500/75 badge">VM</Badge>;
|
||||||
case "ct":
|
case "ct":
|
||||||
return (
|
return (
|
||||||
<Badge className="text-yellow-500/75 border-yellow-500/75">LXC</Badge>
|
<Badge className="text-yellow-500/75 border-yellow-500/75 badge">LXC</Badge>
|
||||||
);
|
);
|
||||||
case "misc":
|
case "misc":
|
||||||
return <Badge className="text-green-500/75 border-green-500/75">MISC</Badge>;
|
return <Badge className="text-green-500/75 border-green-500/75 badge">MISC</Badge>;
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
};
|
};
|
||||||
@ -173,6 +173,11 @@ const CategoryView = () => {
|
|||||||
>
|
>
|
||||||
{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>
|
||||||
|
Loading…
Reference in New Issue
Block a user