closes #23
All checks were successful
Deploy / Deploy to Production (push) Successful in 21s
All checks were successful
Deploy / Deploy to Production (push) Successful in 21s
This commit is contained in:
parent
cb1e961faf
commit
875e4d63f5
1 changed files with 4 additions and 4 deletions
|
|
@ -158,14 +158,14 @@
|
|||
<button
|
||||
class="portfolio-arrow portfolio-arrow--up"
|
||||
aria-label="Projet précédent"
|
||||
disabled={currentIndex === 0}
|
||||
onclick={() => { if (currentIndex > 0) { currentIndex--; setAnchor(currentIndex) } }}
|
||||
disabled={currentIndex >= projects.length - 1}
|
||||
onclick={() => { if (currentIndex < projects.length - 1) { currentIndex++; setAnchor(currentIndex) } }}
|
||||
></button>
|
||||
<button
|
||||
class="portfolio-arrow portfolio-arrow--down"
|
||||
aria-label="Projet suivant"
|
||||
disabled={currentIndex >= projects.length - 1}
|
||||
onclick={() => { if (currentIndex < projects.length - 1) { currentIndex++; setAnchor(currentIndex) } }}
|
||||
disabled={currentIndex === 0}
|
||||
onclick={() => { if (currentIndex > 0) { currentIndex--; setAnchor(currentIndex) } }}
|
||||
></button>
|
||||
<output class="portfolio-counter">{String(currentIndex + 1).padStart(2, '0')}/{String(projects.length).padStart(2, '0')}</output>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue