Skip to content

Commit c113ae4

Browse files
Faculty name tooltip on hover
1 parent 4bca524 commit c113ae4

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/components/ui/CompoundTable.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,10 @@ export default function CompoundTable({ data, large }: CompoundTableProps) {
9090
<div className="w-[80px] shrink-0 ml-4 mr-4 break-words whitespace-normal text-left">
9191
{entry.slot.replace(/\+/g, '+\u200B')}
9292
</div>
93-
<div className="w-[160px] shrink-0 break-words whitespace-normal text-right pr-4">
93+
<div
94+
title={i === 0 ? displayName : undefined}
95+
className="w-[160px] shrink-0 break-words whitespace-normal text-right pr-4"
96+
>
9497
{i === 0 ? initials : ''}
9598
</div>
9699
</div>
@@ -103,4 +106,4 @@ export default function CompoundTable({ data, large }: CompoundTableProps) {
103106
</div>
104107
</div>
105108
);
106-
}
109+
}

0 commit comments

Comments
 (0)