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 摘要。