Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions apps/frontend/src/components/GetTooltip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ export const GetTooltip = ({
place="top"
positionStrategy="fixed"
clickable={true}
>
{children}
><div style={{ maxWidth: '300px', whiteSpace: 'normal', wordWrap: 'break-word' }}>
{children}
</div>
</Tooltip>
);
};
2 changes: 1 addition & 1 deletion apps/frontend/src/components/finals/FinalsViewer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ const columns: ColumnDef<FinalExamRow>[] = [
const formattedCourseCode = formatCourseCode(courseCode);
const id = `finals-table-${courseCode}`;

return <><Link data-tooltip-id={id} href={`/course/${formattedCourseCode}`}>{formattedCourseCode}</Link><GetTooltip id={id} children={<><b>{row.original.name as string}</b> <br />{row.original.desc as string}</>} /></>;
return <><Link data-tooltip-id={id} href={`/course/${formattedCourseCode}`}>{formattedCourseCode}</Link><GetTooltip id={id} children={<div><b>{row.original.name as string}</b> <br />{row.original.desc as string}</div>} /></>;
},
},
{
Expand Down
Loading
Loading