Skip to content

Commit

Permalink
refactor: inputTable内组件最小宽度优化
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangtao07 committed Oct 11, 2024
1 parent 5402322 commit 30d6dc4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/amis-ui/scss/components/_table.scss
Original file line number Diff line number Diff line change
Expand Up @@ -262,8 +262,13 @@

& > .#{$ns}Form,
& > .#{$ns}Form-item > .#{$ns}Form-control:not(.is-thin) {
// todo 优化这个,有些表单项宽度其实是很小的比如 switch,button,checkbox,radio
min-width: var(--Form-control-widthBase);

&.#{$ns}CheckboxControl,
&.#{$ns}SwitchControl,
&.#{$ns}RadiosControl {
min-width: auto;
}
}

.#{$ns}Form-static {
Expand Down

0 comments on commit 30d6dc4

Please sign in to comment.