Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(web): configure slideshow #7219

Merged
merged 9 commits into from Feb 23, 2024
Merged

Conversation

martabal
Copy link
Member

@martabal martabal commented Feb 20, 2024

Add an option to configure the slideshow delay and show / hide the progress bar

Screenshots

2024-02-20.19-15-25.mp4

@martabal martabal changed the title feat: configure slideshow delay feat(web): configure slideshow delay Feb 20, 2024
Copy link

cloudflare-pages bot commented Feb 20, 2024

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 26adfd4
Status: ✅  Deploy successful!
Preview URL: https://f561c2e1.immich.pages.dev
Branch Preview URL: https://feat-configure-slideshow-del.immich.pages.dev

View logs

@martabal martabal marked this pull request as draft February 20, 2024 11:36
@martabal martabal changed the title feat(web): configure slideshow delay feat(web): configure slideshow Feb 20, 2024
@martabal martabal marked this pull request as ready for review February 20, 2024 18:18
Copy link
Member

@danieldietzler danieldietzler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

</script>

<span class="absolute left-0 h-[3px] bg-immich-primary shadow-2xl" style:width={`${$progress * 100}%`} />
{#if $showProgressBar}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This means the component cannot be used anywhere else, since it's functionality is now coupled with the this slideshow setting.

@jrasm91
Copy link
Contributor

jrasm91 commented Feb 22, 2024

I've updated it to have a settings modal, similar to the map. It seems more consistent. I've also moved the shuffle setting into the same place now (less buttons on the screen all the time).

image

@jrasm91 jrasm91 force-pushed the feat/configure-slideshow-delay branch from f5aebea to 7338439 Compare February 22, 2024 15:53
@alextran1502 alextran1502 merged commit b3b6426 into main Feb 23, 2024
25 checks passed
@alextran1502 alextran1502 deleted the feat/configure-slideshow-delay branch February 23, 2024 05:01
danieldietzler pushed a commit that referenced this pull request Feb 23, 2024
* feat: configure slideshow delay

* feat: show/hide progressbar

* fix: slider

* refactor: use grid instead of flex

* fix: default delay

* refactor: progress bar props

* refactor: slideshow settings

* fix: enforce min/max value

* chore: linting

---------

Co-authored-by: Jason Rasmussen <jrasm91@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants