You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The image-switching feature was introduced in version 7.0.0.
When we specify images for both the light and dark modes separately within a post, we can switch to the next image using a button. However, it will display all images (regardless of whether they are for the light or dark mode) uniformly.
When we switch images using the button, the displayed image sequence is fig1-light.png, fig1-dark.png, fig2-light.png, fig2-dark.png.
Expected Behavior
I think that when switching images, only the images corresponding to the current mode are displayed. For example, when we are in light mode, the displayed image sequence is fig1-light.png, fig2-light.png.
Environment
Ruby: 3.2.1
Jekyll: 4.3.3
Chirpy: 7.0.0
Anything else?
Nothing.
The text was updated successfully, but these errors were encountered:
I'm just keeping Glightbox's default behavior, to hide images that don't fit the theme mode, you may need to modify Glightbox configuration, or have Glightbox disable looping images, and just use its zoom.
Either way, you're welcome to submit a PR to help improve this!
Checklist
How did you create the site?
Generated from
chirpy-starter
Describe the bug
The image-switching feature was introduced in version 7.0.0.
When we specify images for both the light and dark modes separately within a post, we can switch to the next image using a button. However, it will display all images (regardless of whether they are for the light or dark mode) uniformly.
Steps To Reproduce
For example, if we have a post like
When we switch images using the button, the displayed image sequence is
fig1-light.png
,fig1-dark.png
,fig2-light.png
,fig2-dark.png
.Expected Behavior
I think that when switching images, only the images corresponding to the current mode are displayed. For example, when we are in light mode, the displayed image sequence is
fig1-light.png
,fig2-light.png
.Environment
Anything else?
Nothing.
The text was updated successfully, but these errors were encountered: