Convert newlines in weapon descriptions

pull/1/head
Marvin Lehmann 2021-10-27 00:19:59 +02:00 committed by Made Baruna
parent fc34169d58
commit 6c0e80be6f
No known key found for this signature in database
GPG Key ID: 5AA5DA16AA5DCEAD
1 changed files with 2 additions and 2 deletions

View File

@ -102,11 +102,11 @@
<Icon path={mdiCircle} size={0.4} className="mx-2 mt-1" color="white" /> <Icon path={mdiCircle} size={0.4} className="mx-2 mt-1" color="white" />
<p class="text-base text-white font-semibold mt-1">{$t(`weapon.${weapon.type}`)}</p> <p class="text-base text-white font-semibold mt-1">{$t(`weapon.${weapon.type}`)}</p>
</div> </div>
<p class="text-gray-200">{weapon.description}</p> <p class="text-gray-200">{@html weapon.description.replace(/\\n/g, '<br/>')}</p>
{#if weapon.skill.name} {#if weapon.skill.name}
<div class="p-4 rounded-xl bg-item flex flex-col mt-4"> <div class="p-4 rounded-xl bg-item flex flex-col mt-4">
<p class="font-black font-display text-xl text-white">{weapon.skill.name}</p> <p class="font-black font-display text-xl text-white">{weapon.skill.name}</p>
<p class="skill-description text-white">{@html weapon.skill.description}</p> <p class="skill-description text-white">{@html weapon.skill.description.replace(/\\n/g, '<br/>')}</p>
</div> </div>
{/if} {/if}
<Ad type="mobile" variant="mpu" id="1" class="flex justify-center mt-4" /> <Ad type="mobile" variant="mpu" id="1" class="flex justify-center mt-4" />