formview better style

This commit is contained in:
Jan Prochazka
2021-01-23 20:36:58 +01:00
parent 532c64840b
commit e253cfb1b0
2 changed files with 14 additions and 1 deletions

View File

@@ -490,7 +490,12 @@ export default function FormView(props) {
isSelected={currentCell[0] == rowIndex && currentCell[1] == chunkIndex * 2}
ref={element => setCellRef(rowIndex, chunkIndex * 2, element)}
>
<ColumnLabelMargin {...col} />
<ColumnLabelMargin
{...col}
headerText={col.columnName}
style={{ marginLeft: (col.uniquePath.length - 1) * 20 }}
extInfo={col.foreignKey ? ` -> ${col.foreignKey.refTableName}` : null}
/>
{col.foreignKey && (
<ShowFormButton