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

Feature request: be able to specify size of thumbnail #89

Closed
blitzmann opened this issue May 29, 2021 · 1 comment
Closed

Feature request: be able to specify size of thumbnail #89

blitzmann opened this issue May 29, 2021 · 1 comment

Comments

@blitzmann
Copy link

blitzmann commented May 29, 2021

For our use case, we only have a full size image, no thumbnail. So we use the fullsize image as the thumbnail. But by default, the image is displayed as the dimensions of the thumbnail, regardless of it's container size. This is way too large for our purposes. We need to restrict the size of the displayed image, but there doesn't seem to be a way to do this out of the box.

The work around is to create an ::ng-deep .ngxImageZoomThumbnail style to target the inner thumbnail image. I feel that this is a work around rather than a true fix. If this workaround is the intended way, I would request documentation be added that describes it (maybe in a FAQ). Example using my avatar:

https://stackblitz.com/edit/angular-ivy-czc2dm?file=src%2Fapp%2Fapp.component.ts

@wittlock
Copy link
Owner

duplicate of #64 - closing this issue in favor of that one

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

No branches or pull requests

2 participants