Text有addOn时inline,size设置&static-image展示文字不省略 (#1857)

Co-authored-by: dqc <qianchuan.deng@gmail.com>
This commit is contained in:
qianchuan 2021-04-22 16:05:41 +08:00 committed by GitHub
parent e5a8da04c4
commit 16df9e04dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 6 deletions

View File

@ -92,16 +92,10 @@
&-caption {
font-size: var(--fontSizeSm);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
&-title {
font-size: var(--fontSizeSm);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
&-overlay {

View File

@ -135,6 +135,21 @@
color: var(--text--muted-color);
}
&--withAddOn.is-inline {
display: inline-block;
@include media-breakpoint-up(sm) {
&.#{$ns}Form-control--sizeXs,
&.#{$ns}Form-control--sizeSm,
&.#{$ns}Form-control--sizeMd,
&.#{$ns}Form-control--sizeLg {
> .#{$ns}TextControl-input {
min-width: 100%;
}
}
}
}
&-input--withAC {
position: relative;
flex-wrap: wrap;