mirror of
https://github.com/Syngnat/GoNavi.git
synced 2026-05-11 19:29:44 +08:00
🐛 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:
@@ -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;
|
||||
}
|
||||
`;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user