cloudinary / cloudinary/cloudinary_angular

Background image position options instead of center

オープン
#297 コメント 2 件 リアクション 0 件 担当者 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 を短くまとめたダイジェスト。