mirror of
https://github.com/BradNut/boredgame
synced 2025-09-08 17:40:22 +00:00
Format description.
This commit is contained in:
parent
45acecae03
commit
d37c0aca61
1 changed files with 8 additions and 10 deletions
|
|
@ -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>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue