Skip to content

Commit 2187317

Browse files
committed
Make wrapped text indented to align with the start of the text for perks
1 parent e76d3e0 commit 2187317

File tree

1 file changed

+15
-7
lines changed

1 file changed

+15
-7
lines changed

src/components/sponsor-tiers/sponsor-tiers.astro

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -203,10 +203,12 @@ const formatPrice = (price: number | string) => {
203203
</div>
204204

205205
<p class="font-bold text-base">This tier includes:</p>
206-
<ul class="text-base">
206+
<ul class="text-base list-none pl-0">
207207
{tier.features.map((feature) => (
208-
<li set:html={`✔️ ${feature}`}></li>
209-
208+
<li class="flex items-start">
209+
<span class="flex-shrink-0 w-6">✔️</span>
210+
<span set:html={feature}></span>
211+
</li>
210212
))}
211213
</ul>
212214
<div class="absolute bottom-4 right-4">
@@ -252,9 +254,12 @@ const formatPrice = (price: number | string) => {
252254
</div>
253255

254256
<p class="font-bold text-base">This tier includes:</p>
255-
<ul class="text-base">
257+
<ul class="text-base list-none pl-0">
256258
{tier.features.map((feature) => (
257-
<li set:html={`✔️ ${feature}`}></li>
259+
<li class="flex items-start">
260+
<span class="flex-shrink-0 w-6">✔️</span>
261+
<span set:html={feature}></span>
262+
</li>
258263
))}
259264
</ul>
260265
<div class="absolute bottom-4 right-4">
@@ -298,9 +303,12 @@ const formatPrice = (price: number | string) => {
298303
</div>
299304

300305
<p class="font-bold text-base">This tier includes:</p>
301-
<ul class="text-base">
306+
<ul class="text-base list-none pl-0">
302307
{tier.features.map((feature) => (
303-
<li set:html={`✔️ ${feature}`}></li>
308+
<li class="flex items-start">
309+
<span class="flex-shrink-0 w-6">✔️</span>
310+
<span set:html={feature}></span>
311+
</li>
304312
))}
305313
</ul>
306314
<div class="absolute bottom-4 right-4">

0 commit comments

Comments
 (0)