diff --git a/.changeset/mighty-foxes-jog.md b/.changeset/mighty-foxes-jog.md new file mode 100644 index 000000000..aa0302db9 --- /dev/null +++ b/.changeset/mighty-foxes-jog.md @@ -0,0 +1,5 @@ +--- +"@hi-ui/descriptions": patch +--- + +fix: 修复带边框模式下 size 设置无效问题 diff --git a/.changeset/shiny-foxes-attack.md b/.changeset/shiny-foxes-attack.md new file mode 100644 index 000000000..082af093d --- /dev/null +++ b/.changeset/shiny-foxes-attack.md @@ -0,0 +1,5 @@ +--- +"@hi-ui/hiui": patch +--- + +Descriptions fix: 修复带边框模式下 size 设置无效问题 diff --git a/packages/ui/descriptions/src/styles/descriptions.scss b/packages/ui/descriptions/src/styles/descriptions.scss index 85ac301ac..c274dcba0 100644 --- a/packages/ui/descriptions/src/styles/descriptions.scss +++ b/packages/ui/descriptions/src/styles/descriptions.scss @@ -91,6 +91,20 @@ $prefix: '#{$component-prefix}-descriptions' !default; border: use-border-size('normal') use-color('gray', 200); background-color: use-color-static('white'); + &.#{$prefix}--size-md { + .#{$prefix}-row > th, + .#{$prefix}-row > td { + padding: use-spacing(7); + } + } + + &.#{$prefix}--size-sm { + .#{$prefix}-row > th, + .#{$prefix}-row > td { + padding: use-spacing(5); + } + } + > table { table-layout: auto; border-collapse: collapse;