Padding to the hidden description content.

This commit is contained in:
Bradley Shellnut 2022-10-31 10:25:02 -05:00
parent bef6ca3192
commit 7b0af8ed7e

View file

@ -92,13 +92,13 @@
</div> </div>
</section> </section>
{#if firstParagraphEnd > 0} {#if firstParagraphEnd > 0}
<section class="description first-paragraph" style="margin-top: 2rem;"> <section class="description" style="margin-top: 2rem;">
{@html game?.description?.substring(0, firstParagraphEnd)} {@html game?.description?.substring(0, firstParagraphEnd)}
</section> </section>
{#if game?.description?.substring(firstParagraphEnd + 1) !== ''} {#if game?.description?.substring(firstParagraphEnd + 1) !== ''}
<section class="description"> <section class="description">
{#if seeMore} {#if seeMore}
<div in:fly={{ opacity: 0, x: 100 }} out:fade> <div class="overflow-description" in:fly={{ opacity: 0, x: 100 }} out:fade>
{@html game?.description?.substring(firstParagraphEnd + 1)} {@html game?.description?.substring(firstParagraphEnd + 1)}
</div> </div>
{/if} {/if}
@ -181,9 +181,15 @@
margin: 1rem; margin: 1rem;
} }
.overflow-description {
display: grid;
gap: 1.5rem;
}
.with-icon { .with-icon {
display: flex; display: grid;
flex-wrap: wrap; grid-template-columns: repeat(2, auto);
/* flex-wrap: wrap; */
place-items: center; place-items: center;
gap: 1rem; gap: 1rem;
} }