diff --git a/frontend/src/components/DataGridRecordViews.tsx b/frontend/src/components/DataGridRecordViews.tsx index 68755696..2cd62737 100644 --- a/frontend/src/components/DataGridRecordViews.tsx +++ b/frontend/src/components/DataGridRecordViews.tsx @@ -86,13 +86,13 @@ interface DataGridTextCellProps extends React.HTMLAttributes { 'data-grid-text-value-copy'?: string; } -interface DataGridTextValueCellProps extends DataGridTextCellProps { +interface DataGridTextOverflowCellProps extends DataGridTextCellProps { value: string; cellBaseStyle: React.CSSProperties; tooltipInnerStyle: React.CSSProperties; } -const DataGridTextValueCell: React.FC = ({ +const DataGridTextOverflowCell: React.FC = ({ value, cellBaseStyle, tooltipInnerStyle, @@ -192,18 +192,6 @@ export const DataGridTextView: React.FC = ({ } }, [translate]); - const renderCell = ( - value: string, - style: React.CSSProperties, - props?: DataGridTextCellProps, - ) => { - return ( -
- {value} -
- ); - }; - return (
@@ -267,18 +255,28 @@ export const DataGridTextView: React.FC = ({ role="row" style={{ display: 'grid', gridTemplateColumns, borderBottom }} > - {renderCell(col, { fontWeight: 600, color: primaryTextColor }, { 'data-grid-text-view-cell': 'field' })} - {renderCell( - showColumnType ? columnType : '', - { color: metaTextColor }, - { 'data-grid-text-view-cell': 'type' }, - )} - {renderCell( - showColumnComment ? columnComment : '', - { color: metaTextColor }, - { 'data-grid-text-view-cell': 'comment' }, - )} - + + +