diff --git a/style/web/components/avatar/_index.less b/style/web/components/avatar/_index.less index 51eee8f278..10c1d27605 100644 --- a/style/web/components/avatar/_index.less +++ b/style/web/components/avatar/_index.less @@ -43,6 +43,16 @@ max-height: 100%; z-index: inherit; } + + .@{prefix}-image__error, + .@{prefix}-image__loading { + font-size: 0.3em; + line-height: 1.5; + + .t-icon { + font-size: inherit; + } + } } .@{prefix}-avatar-group { diff --git a/style/web/components/image/_index.less b/style/web/components/image/_index.less index 6584fa7db6..b494d47841 100644 --- a/style/web/components/image/_index.less +++ b/style/web/components/image/_index.less @@ -167,9 +167,12 @@ &__error { .center(); - font-size: 0.3em; - line-height: 1.5; + font: @font-body-medium; z-index: calc(@image-placeholder-z-index + 1); + + .t-icon { + font-size: 32px; + } } &__loading {