File tree Expand file tree Collapse file tree 1 file changed +1
-16
lines changed Expand file tree Collapse file tree 1 file changed +1
-16
lines changed Original file line number Diff line number Diff line change @@ -19,14 +19,6 @@ const featuredSpeakers = getRandomSpeakers(validSpeakers, 15);
1919const sectionTitle = " Featured Speakers" ;
2020const sectionSubtitle = " Meet some of our amazing speakers" ;
2121
22- // Helper function to truncate names if needed
23- function formatSpeakerName(name : string ) {
24- // Option: You could truncate very long names
25- // if (name.length > 20) {
26- // return name.substring(0, 18) + '...';
27- // }
28- return name ;
29- }
3022---
3123
3224<section class =" py-16 px-4 bg-gray-50" >
@@ -55,15 +47,8 @@ function formatSpeakerName(name: string) {
5547 <div class = " p-4 text-center h-[88px] flex flex-col justify-center" >
5648 <!-- Solution: Use text-ellipsis with 2 lines max and remove whitespace-nowrap -->
5749 <h3 class = " font-bold text-lg text-gray-900 group-hover:text-primary transition-colors line-clamp-2" >
58- { formatSpeakerName ( speaker .data .name ) }
50+ { speaker .data .name }
5951 </h3 >
60-
61- <!-- Optional: Add role/title with ellipsis if available -->
62- { speaker .data .title && (
63- <p class = " text-sm text-gray-600 mt-1 line-clamp-1" >
64- { speaker .data .title }
65- </p >
66- )}
6752 </div >
6853 </div >
6954 </a >
You can’t perform that action at this time.
0 commit comments