style: make Table expand icon same size as checkbox (#29214)

close #29207
This commit is contained in:
afc163 2021-02-03 22:36:44 +08:00 committed by GitHub
parent f434440bd1
commit f6683ebfc3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -416,9 +416,8 @@
display: inline-flex;
float: left;
box-sizing: border-box;
width: ceil(((@font-size-sm * 1.4 - @border-width-base * 3) / 2)) * 2 + @border-width-base * 3;
height: ceil(((@font-size-sm * 1.4 - @border-width-base * 3) / 2)) * 2 + @border-width-base * 3;
width: @expand-icon-size;
height: @expand-icon-size;
padding: 0;
color: inherit;
line-height: ceil(((@font-size-sm * 1.4 - @border-width-base * 3) / 2)) * 2 + @border-width-base *
@ -427,8 +426,12 @@
border: @border-width-base @border-style-base @table-border-color;
border-radius: @border-radius-base;
outline: none;
transform: scale((unit(@checkbox-size) / unit(@expand-icon-size)));
transform-origin: bottom;
transition: all 0.3s;
user-select: none;
@expand-icon-size: ceil(((@font-size-sm * 1.4 - @border-width-base * 3) / 2)) * 2 +
@border-width-base * 3;
&:focus,
&:hover,