Skip to content

Commit

Permalink
fix: remove usused suspense
Browse files Browse the repository at this point in the history
  • Loading branch information
rileychh committed Sep 7, 2024
1 parent 0c2dc21 commit bcbb57c
Showing 1 changed file with 1 addition and 33 deletions.
34 changes: 1 addition & 33 deletions content/event.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,14 +78,7 @@ async function addToCalendar(type: CalendarType) {

{{ venueAddress }} <CopyButton :source="venueAddress" />

<ClientOnly>
<Suspense>
<LeafletMap class="map" />
<template #fallback>
<div class="map loading"><IconPhMapPinAreaBold /></div>
</template>
</Suspense>
</ClientOnly>
<LeafletMap class="map" />

<div class="actions">
<VPButton
Expand Down Expand Up @@ -152,35 +145,10 @@ svg {
}
}

@keyframes pulse {
0% {
background-color: var(--vp-c-gray-1);
box-shadow: 0 0 0 0px var(--vp-c-gray-1);
}
100% {
background-color: transparent;
box-shadow: 0 0 0 20px transparent;
}
}

.map {
width: 100%;
height: 400px;
margin: 8px 0;
border-radius: 4px;

&.loading {
display: flex;
justify-content: center;
align-items: center;
font-size: xx-large;
background-color: var(--vp-c-bg-elv);

svg {
padding: 2px;
border-radius: 50%;
animation: pulse 2s infinite;
}
}
}
</style>

0 comments on commit bcbb57c

Please sign in to comment.