cloudinary / cloudinary/cloudinary_angular

Background image position options instead of center

未關閉
#297 2 則留言 0 個 reaction 已指派 1 人 已被 @strausr 認領 在 GitHub 檢視
enhancement
主要語言
TypeScript
星號
302
分支
224
PR 合併指標
30 天內沒有已合併 PR

描述

## 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}`);

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。