mirror of
https://github.com/R0m1k3/FlowReader.git
synced 2026-10-23 15:18:06 +02:00
feat(ui): display published date on article card
This commit is contained in:
1 parent
fd03cdfd34
commit
7e0a782e38
1 file changed
+11
-2
@@ -72,8 +72,8 @@ export function ArticleCard({ article, onClick, onToggleRead, onToggleFavorite }
|
|||||||
</p>
|
</p>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
<div className="flex items-center justify-between pt-2">
|
<div className="flex items-center justify-between pt-2 border-t border-white/5 mt-4">
|
||||||
<div className="flex space-x-4">
|
<div className="flex space-x-2">
|
||||||
<button
|
<button
|
||||||
onClick={(e) => {
|
onClick={(e) => {
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
@@ -99,6 +99,15 @@ export function ArticleCard({ article, onClick, onToggleRead, onToggleFavorite }
|
|||||||
</svg>
|
</svg>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<span className="text-[10px] text-paper-muted/60 font-medium tracking-wide">
|
||||||
|
{new Date(article.published_at || article.created_at).toLocaleDateString('fr-FR', {
|
||||||
|
day: 'numeric',
|
||||||
|
month: 'short',
|
||||||
|
hour: '2-digit',
|
||||||
|
minute: '2-digit'
|
||||||
|
})}
|
||||||
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</article>
|
</article>
|
||||||
|
|||||||
Reference in new issue
Block a user