mirror of
https://github.com/R0m1k3/FlowReader.git
synced 2026-10-21 14:18:06 +02:00
fix(ui): adjust card gradient, align buttons, and add read-on-open logic
This commit is contained in:
1 parent
b5aa076751
commit
5e73018e31
2 files changed
+10
-4
No files matched your search
@@ -96,7 +96,12 @@ export function DashboardPage({ selectedFeedId }: DashboardPageProps) {
|
||||
<div key={article.id} className={index % 6 === 0 ? 'md:col-span-2' : ''}>
|
||||
<ArticleCard
|
||||
article={article}
|
||||
onClick={setSelectedArticle}
|
||||
onClick={(article) => {
|
||||
setSelectedArticle(article);
|
||||
if (!article.is_read) {
|
||||
toggleReadMutation.mutate({ id: article.id, is_read: true });
|
||||
}
|
||||
}}
|
||||
onToggleRead={(id, is_read) => toggleReadMutation.mutate({ id, is_read })}
|
||||
onToggleFavorite={(id) => toggleFavoriteMutation.mutate(id)}
|
||||
/>
|
||||
|
||||
Reference in new issue
Block a user