🐛 fix(data-grid): 修复字段备注过长时溢出重叠到相邻列的问题

- 为 .gonavi-sortable-header-cell 添加 overflow: hidden 限制 th 溢出
- 为 .sortable-header-cell-drag-handle 添加 overflow: hidden 限制内容溢出
- 配合已有 text-overflow: ellipsis 实现长文本截断显示
- 完整备注仍可通过 Tooltip 悬浮查看
- refs #239
This commit is contained in:
Syngnat
2026-03-18 14:47:40 +08:00
parent 7598bf372b
commit d251594fd9

View File

@@ -397,6 +397,7 @@ interface SortableHeaderCellProps extends React.HTMLAttributes<HTMLTableCellElem
const sortableHeaderStaticStyles = `
.gonavi-sortable-header-cell {
padding: 0 !important;
overflow: hidden;
}
.gonavi-sortable-header-cell[data-cursor-grabbing="true"],
.gonavi-sortable-header-cell[data-cursor-grabbing="true"] *,
@@ -413,6 +414,7 @@ const sortableHeaderStaticStyles = `
padding: 0 10px;
user-select: none;
cursor: inherit;
overflow: hidden;
}
`;