Skip to content

Commit

Permalink
style: 修复number组件单位换行问题
Browse files Browse the repository at this point in the history
  • Loading branch information
qkiroc committed Jan 5, 2024
1 parent eb5299e commit 6a064b4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/amis-ui/scss/components/form/_number.scss
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@
}

.#{$ns}NumberControl--withUnit {
display: flex;
display: flex !important;

&:hover {
.#{$ns}Number,
Expand Down Expand Up @@ -366,11 +366,14 @@
border-top-left-radius: 0 !important;
border-bottom-left-radius: 0 !important;
background-color: var(--inputNumber-base-unit-bg-color);
min-width: var(--inputNumber-base-default-unit-width);
min-width: var(--inputNumber-base-default-unit-width) !important;
padding: var(--inputNumber-base-default-unit-paddingTop)
var(--inputNumber-base-default-unit-paddingRight)
var(--inputNumber-base-default-unit-paddingBottom)
var(--inputNumber-base-default-unit-paddingLeft);
.#{$ns}Select-valueWrap {
width: auto !important;
}
}
.#{$ns}NumberControl-single-unit {
cursor: default;
Expand Down

0 comments on commit 6a064b4

Please sign in to comment.