Skip to content

Commit 4520125

Browse files
authored
Update page.tsx
1 parent 6616549 commit 4520125

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

frontend/src/app/category-view/page.tsx

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -164,24 +164,21 @@ const CategoryView = () => {
164164
onClick={() => handleScriptClick(script.slug)}
165165
>
166166
<CardContent className="flex flex-col gap-4">
167-
<div className="flex justify-between">
168-
<h3 className="text-lg font-bold script-text">{script.name}</h3>
169-
{formattedBadge(script.type || "misc")}
170-
</div>
171-
<p className="text-sm text-gray-500">
167+
<h3 className="text-lg font-bold script-text text-center">{script.name}</h3>
168+
<img
169+
src={script.logo || defaultLogo}
170+
alt={script.name || "Script logo"}
171+
className="h-12 w-12 object-contain mx-auto"
172+
/>
173+
<p className="text-sm text-gray-500 text-center">
172174
<b>Created at:</b> {script.date_created || "No date available"}
173175
</p>
174176
<p
175-
className="text-sm text-gray-700 hover:text-gray-900"
177+
className="text-sm text-gray-700 hover:text-gray-900 text-center"
176178
title={script.description || "No description available."}
177179
>
178180
{truncateDescription(script.description || "No description available.")}
179181
</p>
180-
<img
181-
src={script.logo || defaultLogo}
182-
alt={script.name || "Script logo"}
183-
className="h-16 w-16 object-contain mx-auto mt-4"
184-
/>
185182
{renderResources(script)}
186183
</CardContent>
187184
</Card>

0 commit comments

Comments
 (0)