Giter Site home page Giter Site logo

Comments (8)

imadharilla avatar imadharilla commented on August 26, 2024 1

ngx-image-zoom .ngxImageZoomThumbnail { max-height: 200px; }

@edu1525 didn't help.

You are trying to apply css properties from a parent component to a child component while their css logic is separated.
You can use ::ng-deep to make the child components inherit the css property

I think this will work for you :

::ng-deep ngx-image-zoom .ngxImageZoomThumbnail { max-height: 200px; }

from ngx-image-zoom.

TLKG avatar TLKG commented on August 26, 2024 1

::ng-deep ngx-image-zoom .ngxImageZoomThumbnail { max-height: 200px; }

@imadharilla Although ng-deep is being deprecated, it works! Thanks.

from ngx-image-zoom.

wittlock avatar wittlock commented on August 26, 2024

It's currently built so that the initial size, the thumbnail size, will be the size of the thumbnail. It was the requirement I had at the time I started. There's been several requests to alter this though so when I next have time to work on this library that is likely to be a first feature I'll try to tackle.

from ngx-image-zoom.

ronaksinghbagga avatar ronaksinghbagga commented on August 26, 2024

Kindly bring this feature as soon as possible as handling image becomes difficult when having an image with large resolutions. waiting for this update in all version.

from ngx-image-zoom.

mowamed avatar mowamed commented on August 26, 2024

@edu1525 & @ronaksinghbagga to change the width and height of the picture, add your styles to the file styles.scss in the root folder
example to modify the thumbnail
ngx-image-zoom .ngxImageZoomThumbnail { max-height: 200px; }

from ngx-image-zoom.

savanrajkotiya avatar savanrajkotiya commented on August 26, 2024

@edu1525 & @ronaksinghbagga to change the width and height of the picture, add your styles to the file styles.scss in the root folder
example to modify the thumbnail
ngx-image-zoom .ngxImageZoomThumbnail { max-height: 200px; }

I have tried to set css like this one but it will not working perfectly in my case , i have full resolution of incoming image (5744 * 3741 ) and i would like to set & display in (1020 * 754).

from ngx-image-zoom.

TLKG avatar TLKG commented on August 26, 2024

ngx-image-zoom .ngxImageZoomThumbnail { max-height: 200px; }

@edu1525 didn't help.

from ngx-image-zoom.

Vasco1 avatar Vasco1 commented on August 26, 2024

Friendly as if there is any news on this issue?

from ngx-image-zoom.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.