Fix front end (#1678)

* Fix front

Co-authored-by: v1b3m <vibenjamin6@gmail.com>

* Fix according to PR

* Fix tests

---------

Co-authored-by: v1b3m <vibenjamin6@gmail.com>
Co-authored-by: Charles Bochet <charles@twenty.com>
This commit is contained in:
gitstart-twenty
2023-09-20 20:46:40 +01:00
committed by GitHub
parent a20ca95f32
commit 78b666f457
6 changed files with 24 additions and 21 deletions

View File

@ -164,18 +164,17 @@ export const EntityTableHeader = () => {
>
<SelectAllCheckbox />
</th>
{visibleTableColumns.map((column, index) => (
<StyledColumnHeaderCell
key={column.key}
isResizing={resizedFieldKey === column.key}
columnWidth={Math.max(
tableColumnsByKey[column.key].size +
(resizedFieldKey === column.key ? resizeFieldOffset : 0),
COLUMN_MIN_WIDTH,
)}
>
<RecoilScope CustomRecoilScopeContext={DropdownRecoilScopeContext}>
<RecoilScope CustomRecoilScopeContext={DropdownRecoilScopeContext}>
{visibleTableColumns.map((column, index) => (
<StyledColumnHeaderCell
key={column.key}
isResizing={resizedFieldKey === column.key}
columnWidth={Math.max(
tableColumnsByKey[column.key].size +
(resizedFieldKey === column.key ? resizeFieldOffset : 0),
COLUMN_MIN_WIDTH,
)}
>
<ColumnHead
column={column}
isFirstColumn={index === 0}
@ -189,9 +188,10 @@ export const EntityTableHeader = () => {
setResizedFieldKey(column.key);
}}
/>
</RecoilScope>
</StyledColumnHeaderCell>
))}
</StyledColumnHeaderCell>
))}
</RecoilScope>
<th>
{hiddenTableColumns.length > 0 && (
<StyledAddIconButtonWrapper>