From b8d4d79b4316ccae5753b97fbd16b1e5183d6fe6 Mon Sep 17 00:00:00 2001 From: zhouyun1 Date: Tue, 10 Oct 2023 16:54:18 +0800 Subject: [PATCH] fix(descriptions): #2619 --- .changeset/mighty-foxes-jog.md | 5 +++++ .changeset/shiny-foxes-attack.md | 5 +++++ .../ui/descriptions/src/styles/descriptions.scss | 14 ++++++++++++++ 3 files changed, 24 insertions(+) create mode 100644 .changeset/mighty-foxes-jog.md create mode 100644 .changeset/shiny-foxes-attack.md 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;