Skip to content

Commit 5638729

Browse files
committed
Update mobile view.
1 parent 960ac6d commit 5638729

File tree

1 file changed

+1
-16
lines changed

1 file changed

+1
-16
lines changed

src/components/sections/speakers.astro

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,6 @@ const featuredSpeakers = getRandomSpeakers(validSpeakers, 15);
1919
const sectionTitle = "Featured Speakers";
2020
const 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>

0 commit comments

Comments
 (0)