Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nz-avatar图标或文字没居中 #2600

Closed
liujiusheng opened this issue Dec 7, 2018 · 1 comment
Closed

nz-avatar图标或文字没居中 #2600

liujiusheng opened this issue Dec 7, 2018 · 1 comment

Comments

@liujiusheng
Copy link

Version

1.8.1

Environment

chrome

Reproduction link

https://stackblitz.com/edit/ng-zorro-antd-start-wqxpyg?file=src%2Fapp%2Fapp.component.html

Steps to reproduce

<nz-avatar [nzText]="2234" nzSize="large" [ngStyle]="{'background-color':'red'}" style="vertical-align: middle;">

What is expected?

图标或文字居中显示

What is actually happening?

偏右显示了

Other?

测试发现由于1.8.1版本中avatar/style/index.lessk中添加了position:absolute;这一行,导致显示效果默认没居中

@hsuanxyz
Copy link
Member

Fix via #2536

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants