alkrauss48 / simple-slides

Simple Slides is a responsive and text-first presentation tool that keeps your audience engaged.
https://simpleslides.dev
MIT License
44 stars 8 forks source link

Remove "Previous" Arrow on First Slide, and "Next" Arrow on Last Slide #38

Closed alkrauss48 closed 1 week ago

alkrauss48 commented 3 weeks ago

If a presentation is on the first slide, then hide the previous (left) arrow.

If a presentation is on the last slide, then hide the next (right) arrow.

First Slide:

Screenshot 2024-10-11 at 11 12 46 AM

Last Slide

Screenshot 2024-10-11 at 11 15 11 AM

Tips:

Front-end Tests (add 6 new tests)

File: resources/js/test/store/slideStore.test.ts (see the 2 tests for the isEnd function; you can probably copy/paste most of them)

File: resources/js/test/components/SlideArrows.test.ts