Skip to content

Commit 87e200a

Browse files
committed
fix: popup when visiting post
1 parent 9a18998 commit 87e200a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/pages/events.astro

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,18 +55,19 @@ const formatBadgeClass = {
5555
<span class="text-neutral-content">{new Date(event.time).toLocaleString("en-SG", {day: "numeric", month: "long", year: "numeric", hour: "numeric", minute: "numeric"})}</span>
5656
</div>
5757
<div class="flex gap-3 flex-wrap mt-7 items-center">
58-
{event.registration_link ? <a href={event.registration_link} class="font-medium text-orange-700 dark:text-orange-500 hover:underline">Register here</a> : null}
58+
{event.registration_link ? <a href={event.registration_link} onclick="event.stopPropagation()" class="font-medium text-orange-700 dark:text-orange-500 hover:underline">Register here</a> : null}
5959

6060
<div class="flex-1"></div>
6161

6262
{(event.format === 'online' || event.format === 'hybrid') && event.meeting_link != undefined ? (
63-
<a href={event.meeting_link} class=" px-3 py-2 text-sm font-medium text-center text-white bg-orange-700 rounded-lg hover:bg-orange-800 focus:ring-4 focus:outline-none focus:ring-orange-300 dark:bg-orange-600 dark:hover:bg-orange-700 dark:focus:ring-orange-800">
63+
<a href={event.meeting_link} onclick="event.stopPropagation()" class=" px-3 py-2 text-sm font-medium text-center text-white bg-orange-700 rounded-lg hover:bg-orange-800 focus:ring-4 focus:outline-none focus:ring-orange-300 dark:bg-orange-600 dark:hover:bg-orange-700 dark:focus:ring-orange-800">
6464
Join meeting
6565
</a>
6666
) : null}
6767

6868
{event.link ? (
6969
<a href={event.link} target="_blank" rel="noopener noreferrer"
70+
onclick="event.stopPropagation()"
7071
class="px-3 py-2 text-sm font-medium text-center text-white bg-blue-700 rounded-lg hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"
7172
>
7273
Visit post

0 commit comments

Comments
 (0)