fix(ui): improve board card hover with shadow and text contrast
Cards now show muted title text by default that becomes full contrast on hover, paired with a shadow-md elevation effect. Removes the old opacity-based hover that made cards fade out. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
afbbf6ff25
commit
b6119878ec
1 changed files with 3 additions and 3 deletions
|
|
@ -62,7 +62,7 @@ export function BoardCardContent({
|
|||
const showBottom = showAssignee || showDueDate;
|
||||
|
||||
return (
|
||||
<div className="rounded-lg border bg-card p-3.5 shadow-[0_1px_2px_0_rgba(0,0,0,0.03)]">
|
||||
<div className="rounded-lg border bg-card p-3.5 shadow-[0_1px_2px_0_rgba(0,0,0,0.03)] transition-shadow group-hover:shadow-md">
|
||||
{/* Priority */}
|
||||
{showPriority &&
|
||||
(editable ? (
|
||||
|
|
@ -91,7 +91,7 @@ export function BoardCardContent({
|
|||
|
||||
{/* Title */}
|
||||
<p
|
||||
className={`text-sm font-medium leading-snug line-clamp-2 ${showPriority ? "mt-2" : ""}`}
|
||||
className={`text-sm font-medium leading-snug line-clamp-2 text-muted-foreground transition-colors group-hover:text-foreground ${showPriority ? "mt-2" : ""}`}
|
||||
>
|
||||
{issue.title}
|
||||
</p>
|
||||
|
|
@ -197,7 +197,7 @@ export function DraggableBoardCard({ issue }: { issue: Issue }) {
|
|||
>
|
||||
<Link
|
||||
href={`/issues/${issue.id}`}
|
||||
className={`block transition-colors hover:opacity-80 ${isDragging ? "pointer-events-none" : ""}`}
|
||||
className={`group block transition-colors ${isDragging ? "pointer-events-none" : ""}`}
|
||||
>
|
||||
<BoardCardContent issue={issue} editable />
|
||||
</Link>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue