colored header on post

This commit is contained in:
SlimusMinus
2026-08-24 01:47:28 +03:00
parent dbd1f100df
commit 2333e28720
3 changed files with 21 additions and 4 deletions

View File

@@ -49,6 +49,8 @@ export default function PostOnFeed({ ad, liked, likeCountAdj, onLike, onEdit, on
const isClosed = ad.status === 'CLOSED';
const headAccentClass = ad.type === "found" ? " f-head-found" : " f-head-loss";
const typeBadge = (
<div className={`f-type-badge ${ad.type === "loss" ? "f-type-loss" : "f-type-found"}`}>
{ad.type === "loss" ? t('postCard.loss') : t('postCard.found')}
@@ -58,7 +60,7 @@ export default function PostOnFeed({ ad, liked, likeCountAdj, onLike, onEdit, on
return (
<div className={`f-card${isClosed ? ' f-card-closed' : ''}`}>
<div className="f-card-head">
<div className={`f-card-head${headAccentClass}`}>
<div className="f-card-author">
<div
className="f-card-author-name"