Fix portfolio move-to-top and put category beside the date.

Bump sort_order above the page leader instead of swapping, and align category left with date right on one meta row.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Alireza Hassani
2026-08-23 15:12:45 +03:30
co-authored by Cursor
parent 1e9f6481b0
commit be9e7da424
4 changed files with 38 additions and 33 deletions
@@ -94,16 +94,18 @@ export function PortfolioCard({
</p>
)
) : null}
{portfolio.categoryName ? (
<span className={cardStyles.categoryChip} dir="auto">
{portfolio.categoryName}
</span>
) : null}
<p className={cardStyles.meta}>
<div className={cardStyles.metaRow} dir="ltr">
{portfolio.categoryName ? (
<span className={cardStyles.categoryChip} dir="auto">
{portfolio.categoryName}
</span>
) : (
<span />
)}
<span className={cardStyles.metaDate} dir="auto">
{publishDate}
</span>
</p>
</div>
</div>
</Link>