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

can not see image after zoom with zoom image plugin #37

Closed
degbug opened this issue Jan 21, 2020 · 5 comments
Closed

can not see image after zoom with zoom image plugin #37

degbug opened this issue Jan 21, 2020 · 5 comments
Labels

Comments

@degbug
Copy link

degbug commented Jan 21, 2020

before zoom:
image
after zoom:
image

@degbug
Copy link
Author

degbug commented Jan 21, 2020

I change the img css to set z-index to 999 to fix it。
I am not good at web, maybe can more elegant

@pdrastil
Copy link

+1 for this issue. Base on the investigation I could do the css class .medium-zoom-image--opened doesn't contain value for z-index from _variales.scss which should be 50.

@jhildenbiddle
Copy link
Owner

A change made in docsify 4.10 is the cause of the issue. This is confirmed by loading an earlier version of the plugin:

<script src="https://unpkg.com/docsify@4.9/lib/plugins/zoom-image.min.js"></script>

Easy enough to fix.

@ChrysSills99
Copy link

ChrysSills99 commented Feb 3, 2020

Are you using simple.css theme?

There is a bug in the file: :root{--zoomimage-overlay-background: rgba(0, 0, 0, 0.875)}

I had to override this in your index.html and set zoomimage-overlay-background: none and mine is working like a charm

@jhildenbiddle
Copy link
Owner

The issue was caused by a class name change in 4.10.

In docsify < 4.10, the class name applied to the zoomed image was "medium-zoom-image--open". In 4.10, this changed to "medium-zoom-image--opened" (noted the "ed" added to "open").

This issue has been fixed and will be available in the upcoming release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants