Skip to content

Commit

Permalink
style: table dropdown add maxheight, close #1647 (#1829)
Browse files Browse the repository at this point in the history
* style: table dropdown add maxheight, close #1647
  • Loading branch information
pointhalo authored Sep 14, 2023
1 parent 1394ae4 commit da9da91
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
7 changes: 7 additions & 0 deletions packages/semi-foundation/table/table.scss
Original file line number Diff line number Diff line change
Expand Up @@ -620,4 +620,11 @@ $module: #{$prefix}-table;
}
}

.#{$module}-column-filter-dropdown {
.#{$prefix}-dropdown-menu {
max-height: $height-table_column_filter_dropdown;
overflow-y: auto;
}
}

@import './rtl.scss';
1 change: 1 addition & 0 deletions packages/semi-foundation/table/variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ $width-table_cell_fixed_left_last: 1px; // 表格左上角单元格底部描边
$width-table_cell_fixed_right_first: 1px; // 表格左上角单元格右侧描边宽度
$width-table_react_resizable_handle: 9px; // 表格伸缩列调节热区宽度
$height-table_pagination_outer_min: 60px; // 表格分页器高度
$height-table_column_filter_dropdown: 290px; // 表格过滤筛选列表最大高度


// Color no need to change
Expand Down
2 changes: 1 addition & 1 deletion packages/semi-ui/table/ColumnFilter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ function renderDropdown(props: RenderDropdownProps = {}, nestedElem: React.React
}

return (
<Dropdown {...dropdownProps} key={`Dropdown_level_${level}`}>
<Dropdown {...dropdownProps} key={`Dropdown_level_${level}`} className={`${cssClasses.PREFIX}-column-filter-dropdown`}>
{nestedElem}
</Dropdown>
);
Expand Down

0 comments on commit da9da91

Please sign in to comment.