Format description.

This commit is contained in:
Bradley Shellnut 2022-10-30 21:06:26 -05:00
parent 45acecae03
commit d37c0aca61

View file

@ -91,15 +91,13 @@
</div> </div>
</section> </section>
{#if firstParagraphEnd > 0} {#if firstParagraphEnd > 0}
<section class="description"> <section class="description first-paragraph">
<span> {@html game?.description?.substring(0, firstParagraphEnd)}
{@html game?.description?.substring(0, firstParagraphEnd)} </section>
</span> {#if game?.description?.substring(firstParagraphEnd + 1) !== ''}
{#if game?.description?.substring(firstParagraphEnd + 1) !== ''} <section class="description" transition:fade>
{#if seeMore} {#if seeMore}
<span transition:fade> {@html game?.description?.substring(firstParagraphEnd + 1)}
{@html game?.description?.substring(firstParagraphEnd + 1)}
</span>
{/if} {/if}
<button class="btn" type="button" on:click={() => (seeMore = !seeMore)} <button class="btn" type="button" on:click={() => (seeMore = !seeMore)}
>See >See
@ -109,8 +107,8 @@
Less <MinusIcon width="24" height="24" /> Less <MinusIcon width="24" height="24" />
{/if} {/if}
</button> </button>
{/if} </section>
</section> {/if}
{:else} {:else}
<section class="description"> <section class="description">
<span> <span>