Skip to content

Commit d1f6b91

Browse files
authored
Added truncate for long title
1 parent 2a44672 commit d1f6b91

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frontend/src/components/pages/CourseDashboard.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ export function CourseDashboard() {
112112
courseList.push(
113113
<a href={`/courses/${course.ID}`}>
114114
<div className="bg-gray-100 p-4 rounded shadow hover:bg-gray-300" >
115-
<h3 className="text-xl font-semibold" >{course.title}</h3>
115+
<h3 className="text-xl font-semibold truncate overflow-hidden" >{course.title}</h3>
116116
<p className="mt-2">{course.description}</p>
117117
</div>
118118
</a>

0 commit comments

Comments
 (0)