mirror of
https://github.com/FranP-code/format_twitter_projects_accounts_tweets.git
synced 2025-10-13 00:32:19 +00:00
Fix table overflow and add checkbox for seen status
This commit is contained in:
committed by
GitHub
parent
6438fcb12f
commit
13d7866faa
@@ -66,7 +66,7 @@ export function ProjectCard({ project, onSeenStatusChange }: ProjectCardProps) {
|
||||
|
||||
{/* Project Actions */}
|
||||
<div className="flex items-center justify-between">
|
||||
<>
|
||||
<div className="flex items-center space-x-4">
|
||||
<div className="flex items-center space-x-4">
|
||||
{/* Project URL */}
|
||||
{project.project_url && (
|
||||
@@ -95,26 +95,24 @@ export function ProjectCard({ project, onSeenStatusChange }: ProjectCardProps) {
|
||||
)}
|
||||
</div>
|
||||
|
||||
{/* Seen Toggle */}
|
||||
<Button
|
||||
variant={seen ? "secondary" : "outline"}
|
||||
size="sm"
|
||||
onClick={toggleSeen}
|
||||
className="ml-auto"
|
||||
</div>
|
||||
|
||||
{/* Seen Checkbox */}
|
||||
<div className="flex items-center space-x-2">
|
||||
<input
|
||||
type="checkbox"
|
||||
id={`seen-${project.id}`}
|
||||
className="w-4 h-4 rounded border-border bg-background"
|
||||
checked={seen}
|
||||
onChange={toggleSeen}
|
||||
/>
|
||||
<label
|
||||
htmlFor={`seen-${project.id}`}
|
||||
className="text-sm text-muted-foreground cursor-pointer"
|
||||
>
|
||||
{seen ? (
|
||||
<>
|
||||
<X className="w-4 h-4 mr-1" />
|
||||
Mark Unseen
|
||||
</>
|
||||
) : (
|
||||
<>
|
||||
<Check className="w-4 h-4 mr-1" />
|
||||
Mark Seen
|
||||
</>
|
||||
)}
|
||||
</Button>
|
||||
</>
|
||||
Seen
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* Engagement Stats */}
|
||||
|
||||
Reference in New Issue
Block a user