Comments (8)
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.
::ng-deep ngx-image-zoom .ngxImageZoomThumbnail { max-height: 200px; }
@imadharilla Although ng-deep is being deprecated, it works! Thanks.
from ngx-image-zoom.
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.
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.
@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.
@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.
ngx-image-zoom .ngxImageZoomThumbnail { max-height: 200px; }
@edu1525 didn't help.
from ngx-image-zoom.
Friendly as if there is any news on this issue?
from ngx-image-zoom.
Related Issues (20)
- Angular 11 issue: Can't import the named export 'ChangeDetectorRef' from non EcmaScript module (only default export is available) HOT 4
- Angular 14 Ivy? HOT 2
- Zoom only when keyboard is pressed HOT 5
- New hover-freeze and toggle-freeze HOT 1
- can i use this npm package in next js ? HOT 2
- Update example with new milestone (version 1.2.0) HOT 1
- Error while using ngx-image-zoom on Angular 14 HOT 3
- Landscape Images not working HOT 1
- Feature request: Allow SafeUrl as image source HOT 1
- Support of NgOptimizedImage HOT 1
- Allow default zoom position
- Not Working with Angular12 HOT 2
- Make it as standalone component.
- Require Alternative (Alt) attribute to images for screen readers HOT 1
- Require Alternative (Alt) attribute to images for screen readers HOT 1
- Request for a "click-toggle" zoom mode
- modal dialog issues HOT 4
- Feature request: be able to specify size of thumbnail HOT 1
- 'ngx-image-zoom' is not a known element HOT 2
- Image create without alt and title HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ngx-image-zoom.