Update src/app/scripts/_components/ScriptInfoBlocks.tsx with enhancements and fixes

This commit is contained in:
Bram Suurd 2024-11-06 22:06:30 +01:00
parent 9356830afa
commit 8bdc41f824

View File

@ -102,7 +102,7 @@ export function LatestScripts({ items }: { items: Category[] }) {
</div> </div>
<div className="flex flex-col"> <div className="flex flex-col">
<p className="text-lg line-clamp-1"> <p className="text-lg line-clamp-1">
{script.name} {getCorrectTypeNaming(script.type)} {script.name} {getDisplayValueFromType(script.type)}
</p> </p>
<p className="text-sm text-muted-foreground flex items-center gap-1"> <p className="text-sm text-muted-foreground flex items-center gap-1">
<CalendarPlus className="h-4 w-4" /> <CalendarPlus className="h-4 w-4" />
@ -171,7 +171,7 @@ export function MostViewedScripts({ items }: { items: Category[] }) {
</div> </div>
<div className="flex flex-col"> <div className="flex flex-col">
<p className="line-clamp-1 text-lg"> <p className="line-clamp-1 text-lg">
{script.name} {getCorrectTypeNaming(script.type)} {script.name} {getDisplayValueFromType(script.type)}
</p> </p>
<p className="flex items-center gap-1 text-sm text-muted-foreground"> <p className="flex items-center gap-1 text-sm text-muted-foreground">
<CalendarPlus className="h-4 w-4" /> <CalendarPlus className="h-4 w-4" />