Skip to content

Commit

Permalink
fix: 修复存在表格左边冻结列,往右边滚动时,hover表头出现边框后,表头冻结列和表格内容冻结列没有对齐问题 (#1197)
Browse files Browse the repository at this point in the history
* fix: 修复表格左边冻结列左右滚动时,hover表头出现边框后,表头冻结列和表格内容冻结列没有对齐问题

* fix(table): 修复格式

---------

Co-authored-by: pechelhuang <pechelhuang@tencent.com>
  • Loading branch information
huangpiqiao and pechelhuang committed Mar 14, 2023
1 parent ee74bd9 commit 61a972b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions style/web/components/table/_index.less
Original file line number Diff line number Diff line change
Expand Up @@ -1093,6 +1093,16 @@
border-top: @border;
}
}

/** 表格左边有冻结列滚动时,去掉hover表头时多出的一个像素,避免出现表头的冻结列跟表内容的冻结列没有对齐的问题 */
&.@{prefix}-table__content--scrollable-to-left.@{prefix}-table__content--scrollable-to-right,
&.@{prefix}-table__content--scrollable-to-left {
thead.@{prefix}-table__header:hover {
.@{prefix}-table__cell--fixed-left-last:not(:last-child) {
border-right: 0;
}
}
}
}

/** 可选中行的场景下,将 Checkbox 和 Radio 铺满整个单元格,增大点击范围,方便用户选中 */
Expand Down

0 comments on commit 61a972b

Please sign in to comment.