cloudinary / cloudinary/cloudinary_angular

Background image position options instead of center

Đang mở
#297 2 bình luận 0 reaction 1 người được giao Được @strausr nhận Xem trên GitHub
enhancement
Ngôn ngữ chính
TypeScript
Star
302
Fork
224
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

## Explain your use case
There are many cases where 'center center' is not ideal for background positions as defined in the background image directive. https://github.com/cloudinary/cloudinary_angular/blob/master/projects/angular-cld/src/lib/cloudinary-background-image.directive.ts

## Describe the problem you’re trying to solve
A way to provide an override without some css !important hack to control image position.

## Do you have a proposed solution?
Input param for background position, defaults to center

```
@Input('clbackgroundposition') background_position = 'center center';
...
this.renderer.setStyle(nativeElement, 'background-position', `${background_position}`);

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.