diff --git a/components/style/themes/compact.less b/components/style/themes/compact.less index 841d77402c..666cbab1ce 100644 --- a/components/style/themes/compact.less +++ b/components/style/themes/compact.less @@ -221,7 +221,7 @@ @table-padding-horizontal-md: 8px; @table-padding-vertical-sm: 4px; @table-padding-horizontal-sm: 4px; -@table-selection-column-width: 54px; +@table-selection-column-width: 32px; // Statistic // --- diff --git a/components/style/themes/default.less b/components/style/themes/default.less index 9607c1740d..b6aab4e454 100644 --- a/components/style/themes/default.less +++ b/components/style/themes/default.less @@ -612,8 +612,7 @@ @table-filter-btns-bg: inherit; @table-filter-dropdown-bg: @component-background; @table-expand-icon-bg: @component-background; -@table-selection-column-width: 60px; -@table-selection-extra-right: 0; +@table-selection-column-width: 32px; // Sticky @table-sticky-scroll-bar-bg: fade(#000, 35%); @table-sticky-scroll-bar-radius: 4px; diff --git a/components/table/style/index.less b/components/table/style/index.less index 541d5a728c..ba5efdac15 100644 --- a/components/table/style/index.less +++ b/components/table/style/index.less @@ -373,12 +373,10 @@ } &-selection { - position: relative; + display: flex; &-extra { - position: absolute; - top: 0; - right: @table-selection-extra-right; + margin-inline-start: @margin-xss; cursor: pointer; transition: all 0.3s; diff --git a/components/table/style/rtl.less b/components/table/style/rtl.less index c8aa6c0448..82758f291a 100644 --- a/components/table/style/rtl.less +++ b/components/table/style/rtl.less @@ -120,13 +120,6 @@ .@{table-wrapepr-rtl-cls} & { text-align: center; } - - &-extra { - .@{table-wrapepr-rtl-cls} & { - right: auto; - left: @table-selection-extra-right; - } - } } // ========================== Expandable ==========================