fix(info): text vertical middle in android (#3778)

fix #3569
This commit is contained in:
rex 2020-11-23 21:09:10 +08:00 committed by GitHub
parent f1ea060b25
commit 35b2c1d99d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,13 +5,16 @@
position: absolute;
top: 0;
right: 0;
display: flex;
align-items: center;
justify-content: center;
box-sizing: border-box;
line-height: 1.2;
white-space: nowrap;
text-align: center;
transform: translate(50%, -50%);
transform-origin: 100%;
.theme(height, '@info-size');
.theme(min-width, '@info-size');
.theme(padding, '@info-padding');
.theme(color, '@info-color');