The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
Refactored table width and height constants (#14613)
Lucas Bordeauaff3a300fe5d
diff --git a/packages/twenty-front/src/modules/object-record/record-table/components/RecordTableScrollToFocusedCellEffect.tsx b/packages/twenty-front/src/modules/object-record/record-table/components/RecordTableScrollToFocusedCellEffect.tsxindex d04cdbbc5e6..272b0efeb70 100644--- a/packages/twenty-front/src/modules/object-record/record-table/components/RecordTableScrollToFocusedCellEffect.tsx+++ b/packages/twenty-front/src/modules/object-record/record-table/components/RecordTableScrollToFocusedCellEffect.tsx@@ -1,3 +1,4 @@+import { RECORD_TABLE_ROW_HEIGHT } from '@/object-record/record-table/constants/RecordTableRowHeight';import { useRecordTableContextOrThrow } from '@/object-record/record-table/contexts/RecordTableContext';import { isRecordTableCellFocusActiveComponentState } from '@/object-record/record-table/states/isRecordTableCellFocusActiveComponentState';import { recordTableFocusPositionComponentState } from '@/object-record/record-table/states/recordTableFocusPositionComponentState';@@ -51,8 +52,8 @@ export const RecordTableScrollToFocusedCellEffect = () => {}}- focusElement.style.scrollMarginTop = '32px';- focusElement.style.scrollMarginBottom = '32px';+ focusElement.style.scrollMarginTop = `${RECORD_TABLE_ROW_HEIGHT}px`;+ focusElement.style.scrollMarginBottom = `${RECORD_TABLE_ROW_HEIGHT}px`;focusElement.scrollIntoView({ behavior: 'smooth', block: 'nearest' });diff --git a/packages/twenty-front/src/modules/object-record/record-table/components/RecordTableScrollToFocusedRowEffect.tsx b/packages/twenty-front/src/modules/object-record/record-table/components/RecordTableScrollToFocusedRowEffect.tsxindex 50ab9f0bc19..2e87a301b62 100644--- a/packages/twenty-front/src/modules/object-record/record-table/components/RecordTableScrollToFocusedRowEffect.tsx+++ b/packages/twenty-front/src/modules/object-record/record-table/components/RecordTableScrollToFocusedRowEffect.tsx@@ -1,4 +1,5 @@import { recordIndexAllRecordIdsComponentSelector } from '@/object-record/record-index/states/selectors/recordIndexAllRecordIdsComponentSelector';+import { RECORD_TABLE_ROW_HEIGHT } from '@/object-record/record-table/constants/RecordTableRowHeight';import { useRecordTableContextOrThrow } from '@/object-record/record-table/contexts/RecordTableContext';import { focusedRecordTableRowIndexComponentState } from '@/object-record/record-table/states/focusedRecordTableRowIndexComponentState';import { isRecordTableRowFocusActiveComponentState } from '@/object-record/record-table/states/isRecordTableRowFocusActiveComponentState';@@ -47,8 +48,8 @@ export const RecordTableScrollToFocusedRowEffect = () => {return;}- focusElement.style.scrollMarginBottom = '32px';- focusElement.style.scrollMarginTop = '32px';+ focusElement.style.scrollMarginBottom = `${RECORD_TABLE_ROW_HEIGHT}px`;+ focusElement.style.scrollMarginTop = `${RECORD_TABLE_ROW_HEIGHT}px`;focusElement.scrollIntoView({ behavior: 'smooth', block: 'nearest' });diff --git a/packages/twenty-front/src/modules/object-record/record-table/components/RecordTableStyleWrapper.tsx b/packages/twenty-front/src/modules/object-record/record-table/components/RecordTableStyleWrapper.tsxindex 580d5c1c1ad..2b4b2d93b06 100644--- a/packages/twenty-front/src/modules/object-record/record-table/components/RecordTableStyleWrapper.tsx+++ b/packages/twenty-front/src/modules/object-record/record-table/components/RecordTableStyleWrapper.tsx@@ -98,7 +98,7 @@ const StyledTable = styled.div<{}div.header-cell:nth-of-type(2) {- left: 16px;+ left: ${RECORD_TABLE_COLUMN_DRAG_AND_DROP_WIDTH}px;top: 0;background-color: ${({ theme }) => theme.background.primary};@@ -110,7 +110,8 @@ const StyledTable = styled.div<{}div.header-cell:nth-of-type(3) {- left: 48px;+ left: ${RECORD_TABLE_COLUMN_DRAG_AND_DROP_WIDTH ++ RECORD_TABLE_COLUMN_CHECKBOX_WIDTH}px;right: 0;background-color: ${({ theme }) => theme.background.primary};@@ -140,7 +141,7 @@ const StyledTable = styled.div<{div.table-cell:nth-of-type(2) {position: sticky;- left: 16px;+ left: ${RECORD_TABLE_COLUMN_DRAG_AND_DROP_WIDTH}px;z-index: ${({ hasRecordGroups }) =>hasRecordGroups? TABLE_Z_INDEX.cell.withGroups.sticky@@ -149,14 +150,16 @@ const StyledTable = styled.div<{div.table-cell-0-0 {position: sticky;- left: 48px;+ left: ${RECORD_TABLE_COLUMN_DRAG_AND_DROP_WIDTH ++ RECORD_TABLE_COLUMN_CHECKBOX_WIDTH}px;${HorizontalScrollBoxShadowCSS}}div.table-cell:nth-of-type(3) {position: sticky;- left: 48px;+ left: ${RECORD_TABLE_COLUMN_DRAG_AND_DROP_WIDTH ++ RECORD_TABLE_COLUMN_CHECKBOX_WIDTH}px;z-index: ${({ hasRecordGroups }) =>hasRecordGroups? TABLE_Z_INDEX.cell.withGroups.stickydiff --git a/packages/twenty-front/src/modules/object-record/record-table/constants/RecordTableColumnCheckboxWidth.ts b/packages/twenty-front/src/modules/object-record/record-table/constants/RecordTableColumnCheckboxWidth.tsindex 635f878bd4e..9ce2802cf31 100644--- a/packages/twenty-front/src/modules/object-record/record-table/constants/RecordTableColumnCheckboxWidth.ts+++ b/packages/twenty-front/src/modules/object-record/record-table/constants/RecordTableColumnCheckboxWidth.ts@@ -1 +1 @@-export const RECORD_TABLE_COLUMN_CHECKBOX_WIDTH = 32;+export const RECORD_TABLE_COLUMN_CHECKBOX_WIDTH = 28;diff --git a/packages/twenty-front/src/modules/object-record/record-table/constants/RecordTableColumnDragAndDropWidth.ts b/packages/twenty-front/src/modules/object-record/record-table/constants/RecordTableColumnDragAndDropWidth.tsindex 84383d2e0ec..90fe7a28ba9 100644--- a/packages/twenty-front/src/modules/object-record/record-table/constants/RecordTableColumnDragAndDropWidth.ts+++ b/packages/twenty-front/src/modules/object-record/record-table/constants/RecordTableColumnDragAndDropWidth.ts@@ -1 +1 @@-export const RECORD_TABLE_COLUMN_DRAG_AND_DROP_WIDTH = 16;+export const RECORD_TABLE_COLUMN_DRAG_AND_DROP_WIDTH = 12;diff --git a/packages/twenty-front/src/modules/object-record/record-table/record-table-body/components/RecordTableBodyFetchMoreLoader.tsx b/packages/twenty-front/src/modules/object-record/record-table/record-table-body/components/RecordTableBodyFetchMoreLoader.tsxindex 16be658e1dc..f8dc527e0fa 100644--- a/packages/twenty-front/src/modules/object-record/record-table/record-table-body/components/RecordTableBodyFetchMoreLoader.tsx+++ b/packages/twenty-front/src/modules/object-record/record-table/record-table-body/components/RecordTableBodyFetchMoreLoader.tsx@@ -3,6 +3,7 @@ import { useInView } from 'react-intersection-observer';import { useRecoilState } from 'recoil';import { useRecordIndexTableFetchMore } from '@/object-record/record-index/hooks/useRecordIndexTableFetchMore';+import { RECORD_TABLE_ROW_HEIGHT } from '@/object-record/record-table/constants/RecordTableRowHeight';import { useRecordTableContextOrThrow } from '@/object-record/record-table/contexts/RecordTableContext';import { hasRecordTableFetchedAllRecordsComponentState } from '@/object-record/record-table/states/hasRecordTableFetchedAllRecordsComponentState';import { isFetchingMoreRecordsFamilyState } from '@/object-record/states/isFetchingMoreRecordsFamilyState';@@ -15,7 +16,7 @@ const StyledText = styled.div`box-shadow: none;color: ${GRAY_SCALE.gray40};display: flex;- height: 32px;+ height: ${RECORD_TABLE_ROW_HEIGHT}px;margin-left: ${({ theme }) => theme.spacing(8)};padding-left: ${({ theme }) => theme.spacing(2)};`;diff --git a/packages/twenty-front/src/modules/object-record/record-table/record-table-body/components/RecordTableBodyLoading.tsx b/packages/twenty-front/src/modules/object-record/record-table/record-table-body/components/RecordTableBodyLoading.tsxindex 3c189622e31..66491a033dd 100644--- a/packages/twenty-front/src/modules/object-record/record-table/record-table-body/components/RecordTableBodyLoading.tsx+++ b/packages/twenty-front/src/modules/object-record/record-table/record-table-body/components/RecordTableBodyLoading.tsx@@ -3,7 +3,7 @@ import { RecordTableRowContextProvider } from '@/object-record/record-table/contimport { RecordTableRowDraggableContextProvider } from '@/object-record/record-table/contexts/RecordTableRowDraggableContext';import { RecordTableBody } from '@/object-record/record-table/record-table-body/components/RecordTableBody';import { RecordTableCellCheckbox } from '@/object-record/record-table/record-table-cell/components/RecordTableCellCheckbox';-import { RecordTableCellGrip } from '@/object-record/record-table/record-table-cell/components/RecordTableCellGrip';+import { RecordTableCellDragAndDrop } from '@/object-record/record-table/record-table-cell/components/RecordTableCellDragAndDrop';import { RecordTableCellLoading } from '@/object-record/record-table/record-table-cell/components/RecordTableCellLoading';import { RecordTableLastEmptyCell } from '@/object-record/record-table/record-table-cell/components/RecordTableLastEmptyCell';import { RecordTablePlusButtonCellPlaceholder } from '@/object-record/record-table/record-table-cell/components/RecordTablePlusButtonCellPlaceholder';@@ -40,7 +40,7 @@ export const RecordTableBodyLoading = () => {data-selectable-id={`row-id-${rowIndex}`}isFirstRowOfGroup={rowIndex === 0}>- <RecordTableCellGrip />+ <RecordTableCellDragAndDrop /><RecordTableCellCheckbox />{visibleRecordFields.map((recordField, index) => (<RecordTableCellLoadingdiff --git a/packages/twenty-front/src/modules/object-record/record-table/record-table-cell/components/RecordTableCellBaseContainer.tsx b/packages/twenty-front/src/modules/object-record/record-table/record-table-cell/components/RecordTableCellBaseContainer.tsxindex 25d073c2bf9..866f97c434a 100644--- a/packages/twenty-front/src/modules/object-record/record-table/record-table-cell/components/RecordTableCellBaseContainer.tsx+++ b/packages/twenty-front/src/modules/object-record/record-table/record-table-cell/components/RecordTableCellBaseContainer.tsx@@ -5,10 +5,11 @@ import { FieldContext } from '@/object-record/record-field/ui/contexts/FieldContimport { useFieldFocus } from '@/object-record/record-field/ui/hooks/useFieldFocus';import { isFieldIdentifierDisplay } from '@/object-record/record-field/ui/meta-types/display/utils/isFieldIdentifierDisplay';import { RECORD_CHIP_CLICK_OUTSIDE_ID } from '@/object-record/record-table/constants/RecordChipClickOutsideId';+import { RECORD_TABLE_ROW_HEIGHT } from '@/object-record/record-table/constants/RecordTableRowHeight';import { useRecordTableBodyContextOrThrow } from '@/object-record/record-table/contexts/RecordTableBodyContext';import { RecordTableCellContext } from '@/object-record/record-table/contexts/RecordTableCellContext';import { useOpenRecordTableCellFromCell } from '@/object-record/record-table/record-table-cell/hooks/useOpenRecordTableCellFromCell';-import { BORDER_COMMON, ThemeContext } from 'twenty-ui/theme';+import { ThemeContext } from 'twenty-ui/theme';const StyledBaseContainer = styled.div<{fontColorExtraLight: string;@@ -17,22 +18,16 @@ const StyledBaseContainer = styled.div<{backgroundColorSecondary: string;fontColorSecondary: string;isReadOnly: boolean;- borderColorBlue: string;}>`align-items: center;box-sizing: border-box;cursor: ${({ isReadOnly }) => (isReadOnly ? 'default' : 'pointer')};display: flex;- height: 32px;+ height: ${RECORD_TABLE_ROW_HEIGHT}px;user-select: none;position: relative;- &.focus-active {- border-radius: ${BORDER_COMMON.radius.sm};- outline: 1px solid ${({ borderColorBlue }) => borderColorBlue};- }-&:hover {${(props) => {if (!props.isReadOnly) return '';@@ -103,7 +98,6 @@ export const RecordTableCellBaseContainer = ({fontColorExtraLight={theme.font.color.extraLight}fontColorSecondary={theme.font.color.secondary}fontColorMedium={theme.border.color.medium}- borderColorBlue={theme.adaptiveColors.blue4}isReadOnly={isReadOnly ?? false}id={`record-table-cell-${cellPosition.column}-${cellPosition.row}`}data-click-outside-id={diff --git a/packages/twenty-front/src/modules/object-record/record-table/record-table-cell/components/RecordTableCellCheckbox.tsx b/packages/twenty-front/src/modules/object-record/record-table/record-table-cell/components/RecordTableCellCheckbox.tsxindex 75c3195727b..cb3e81ea1d5 100644--- a/packages/twenty-front/src/modules/object-record/record-table/record-table-cell/components/RecordTableCellCheckbox.tsx+++ b/packages/twenty-front/src/modules/object-record/record-table/record-table-cell/components/RecordTableCellCheckbox.tsx@@ -1,22 +1,23 @@import styled from '@emotion/styled';import { useCallback } from 'react';+import { RECORD_TABLE_COLUMN_CHECKBOX_WIDTH } from '@/object-record/record-table/constants/RecordTableColumnCheckboxWidth';import { RECORD_TABLE_COLUMN_CHECKBOX_WIDTH_CLASS_NAME } from '@/object-record/record-table/constants/RecordTableColumnCheckboxWidthClassName';+import { RECORD_TABLE_ROW_HEIGHT } from '@/object-record/record-table/constants/RecordTableRowHeight';import { useRecordTableRowContextOrThrow } from '@/object-record/record-table/contexts/RecordTableRowContext';import { RecordTableCellStyleWrapper } from '@/object-record/record-table/record-table-cell/components/RecordTableCellStyleWrapper';import { useSetCurrentRowSelected } from '@/object-record/record-table/record-table-row/hooks/useSetCurrentRowSelected';import { isDefined } from 'twenty-shared/utils';import { Checkbox } from 'twenty-ui/input';-export const TABLE_CELL_CHECKBOX_MIN_WIDTH = '24px';-const StyledContainer = styled.div`align-items: center;cursor: pointer;display: flex;- height: 32px;+ height: ${RECORD_TABLE_ROW_HEIGHT}px;justify-content: center;- min-width: ${TABLE_CELL_CHECKBOX_MIN_WIDTH};+ min-width: ${RECORD_TABLE_COLUMN_CHECKBOX_WIDTH};+ width: ${RECORD_TABLE_COLUMN_CHECKBOX_WIDTH};padding-right: ${({ theme }) => theme.spacing(1)};`;diff --git a/packages/twenty-front/src/modules/object-record/record-table/record-table-cell/components/RecordTableCellGrip.tsx b/packages/twenty-front/src/modules/object-record/record-table/record-table-cell/components/RecordTableCellDragAndDrop.tsxsimilarity index 89%rename from packages/twenty-front/src/modules/object-record/record-table/record-table-cell/components/RecordTableCellGrip.tsxrename to packages/twenty-front/src/modules/object-record/record-table/record-table-cell/components/RecordTableCellDragAndDrop.tsxindex 288901af768..2ae657fe590 100644--- a/packages/twenty-front/src/modules/object-record/record-table/record-table-cell/components/RecordTableCellGrip.tsx+++ b/packages/twenty-front/src/modules/object-record/record-table/record-table-cell/components/RecordTableCellDragAndDrop.tsx@@ -1,13 +1,14 @@import styled from '@emotion/styled';import { RECORD_TABLE_COLUMN_DRAG_AND_DROP_WIDTH_CLASS_NAME } from '@/object-record/record-table/constants/RecordTableColumnDragAndDropWidthClassName';+import { RECORD_TABLE_ROW_HEIGHT } from '@/object-record/record-table/constants/RecordTableRowHeight';import { TABLE_Z_INDEX } from '@/object-record/record-table/constants/TableZIndex';import { useRecordTableRowDraggableContextOrThrow } from '@/object-record/record-table/contexts/RecordTableRowDraggableContext';import { RecordTableCellStyleWrapper } from '@/object-record/record-table/record-table-cell/components/RecordTableCellStyleWrapper';import { IconListViewGrip } from 'twenty-ui/input';const StyledContainer = styled.div`- height: 32px;+ height: ${RECORD_TABLE_ROW_HEIGHT}px;border-color: transparent;cursor: grab;display: flex;@@ -27,7 +28,7 @@ const StyledIconWrapper = styled.div<{ isDragging: boolean }>`}`;-export const RecordTableCellGrip = () => {+export const RecordTableCellDragAndDrop = () => {const { dragHandleProps, isDragging } =useRecordTableRowDraggableContextOrThrow();diff --git a/packages/twenty-front/src/modules/object-record/record-table/record-table-cell/components/RecordTableCellFocusedPortalContent.tsx b/packages/twenty-front/src/modules/object-record/record-table/record-table-cell/components/RecordTableCellFocusedPortalContent.tsxindex 65b102a32d1..3051db14614 100644--- a/packages/twenty-front/src/modules/object-record/record-table/record-table-cell/components/RecordTableCellFocusedPortalContent.tsx+++ b/packages/twenty-front/src/modules/object-record/record-table/record-table-cell/components/RecordTableCellFocusedPortalContent.tsx@@ -1,4 +1,5 @@import { FieldDisplay } from '@/object-record/record-field/ui/components/FieldDisplay';+import { RECORD_TABLE_ROW_HEIGHT } from '@/object-record/record-table/constants/RecordTableRowHeight';import { useRecordTableBodyContextOrThrow } from '@/object-record/record-table/contexts/RecordTableBodyContext';import { useRecordTableRowContextOrThrow } from '@/object-record/record-table/contexts/RecordTableRowContext';import { RecordTableCellDisplayMode } from '@/object-record/record-table/record-table-cell/components/RecordTableCellDisplayMode';@@ -23,9 +24,9 @@ const StyledRecordTableCellFocusPortalContent = styled.div<{box-sizing: border-box;display: flex;- height: 32px;+ height: ${RECORD_TABLE_ROW_HEIGHT}px;- outline: ${({ theme }) => `1px solid ${theme.color.blue}`};+ outline: ${({ theme }) => `1px solid ${theme.adaptiveColors.blue4}`};user-select: none;`;diff --git a/packages/twenty-front/src/modules/object-record/record-table/record-table-cell/components/RecordTableCellHoveredPortalContent.tsx b/packages/twenty-front/src/modules/object-record/record-table/record-table-cell/components/RecordTableCellHoveredPortalContent.tsxindex 352187df4c7..6d9e9e0a216 100644--- a/packages/twenty-front/src/modules/object-record/record-table/record-table-cell/components/RecordTableCellHoveredPortalContent.tsx+++ b/packages/twenty-front/src/modules/object-record/record-table/record-table-cell/components/RecordTableCellHoveredPortalContent.tsx@@ -1,6 +1,7 @@import { FieldDisplay } from '@/object-record/record-field/ui/components/FieldDisplay';import { FieldContext } from '@/object-record/record-field/ui/contexts/FieldContext';import { useIsFieldInputOnly } from '@/object-record/record-field/ui/hooks/useIsFieldInputOnly';+import { RECORD_TABLE_ROW_HEIGHT } from '@/object-record/record-table/constants/RecordTableRowHeight';import { useRecordTableRowContextOrThrow } from '@/object-record/record-table/contexts/RecordTableRowContext';import { RecordTableCellDisplayMode } from '@/object-record/record-table/record-table-cell/components/RecordTableCellDisplayMode';import { RecordTableCellEditButton } from '@/object-record/record-table/record-table-cell/components/RecordTableCellEditButton';@@ -30,7 +31,7 @@ const StyledRecordTableCellHoveredPortalContent = styled.div<{cursor: ${({ isReadOnly }) => (isReadOnly ? 'default' : 'pointer')};display: flex;- height: 32px;+ height: ${RECORD_TABLE_ROW_HEIGHT}px;outline: ${({ theme, isReadOnly, isRowActive }) =>isRowActivediff --git a/packages/twenty-front/src/modules/object-record/record-table/record-table-row/components/RecordTableDragAndDropPlaceholderCell.tsx b/packages/twenty-front/src/modules/object-record/record-table/record-table-cell/components/RecordTableDragAndDropPlaceholderCell.tsxsimilarity index 100%rename from packages/twenty-front/src/modules/object-record/record-table/record-table-row/components/RecordTableDragAndDropPlaceholderCell.tsxrename to packages/twenty-front/src/modules/object-record/record-table/record-table-cell/components/RecordTableDragAndDropPlaceholderCell.tsxdiff --git a/packages/twenty-front/src/modules/object-record/record-table/record-table-cell/hooks/__tests__/useSetIsRecordTableFocusActive.test.tsx b/packages/twenty-front/src/modules/object-record/record-table/record-table-cell/hooks/__tests__/useSetIsRecordTableFocusActive.test.tsxindex cfabff03fdb..219a9a0f1d5 100644--- a/packages/twenty-front/src/modules/object-record/record-table/record-table-cell/hooks/__tests__/useSetIsRecordTableFocusActive.test.tsx+++ b/packages/twenty-front/src/modules/object-record/record-table/record-table-cell/hooks/__tests__/useSetIsRecordTableFocusActive.test.tsx@@ -46,11 +46,13 @@ const renderHooks = () => {() => {const { setIsRecordTableCellFocusActive } =useSetIsRecordTableCellFocusActive('test-table-id');+const isRecordTableFocusActive = useRecoilValue(isRecordTableCellFocusActiveComponentState.atomFamily({instanceId: 'test-table-id',}),);+const focusPosition = useRecoilValue(recordTableFocusPositionComponentState.atomFamily({instanceId: 'test-table-id',@@ -89,10 +91,6 @@ describe('useSetIsRecordTableFocusActive', () => {});});- expect(mockGetElementById).toHaveBeenCalledWith('record-table-cell-1-0');-- expect(mockClassList.add).toHaveBeenCalledWith('focus-active');-expect(result.current.isRecordTableFocusActive).toBe(true);expect(result.current.focusPosition).toEqual(cellPosition);@@ -110,13 +108,9 @@ describe('useSetIsRecordTableFocusActive', () => {});});- expect(mockGetElementById).toHaveBeenCalledWith('record-table-cell-1-0');-- expect(mockClassList.remove).toHaveBeenCalledWith('focus-active');-expect(result.current.isRecordTableFocusActive).toBe(false);- expect(result.current.focusPosition).toEqual(cellPosition);+ expect(result.current.focusPosition).toEqual(null);});it('should handle case when the cell element is not found', () => {@@ -133,10 +127,6 @@ describe('useSetIsRecordTableFocusActive', () => {});});- expect(mockGetElementById).toHaveBeenCalledWith('record-table-cell-1-0');-- expect(mockClassList.add).not.toHaveBeenCalled();-expect(result.current.isRecordTableFocusActive).toBe(true);expect(result.current.focusPosition).toEqual(cellPosition);diff --git a/packages/twenty-front/src/modules/object-record/record-table/record-table-cell/hooks/useFocusRecordTableCell.ts b/packages/twenty-front/src/modules/object-record/record-table/record-table-cell/hooks/useFocusRecordTableCell.tsindex 5ffcdfca409..340329ee108 100644--- a/packages/twenty-front/src/modules/object-record/record-table/record-table-cell/hooks/useFocusRecordTableCell.ts+++ b/packages/twenty-front/src/modules/object-record/record-table/record-table-cell/hooks/useFocusRecordTableCell.ts@@ -17,7 +17,7 @@ export const useFocusRecordTableCell = (recordTableId?: string) => {recordTableId,);- const focusPositionState = useRecoilComponentCallbackState(+ const focusPositionCallbackState = useRecoilComponentCallbackState(recordTableFocusPositionComponentState,recordTableIdFromProps,);@@ -30,10 +30,10 @@ export const useFocusRecordTableCell = (recordTableId?: string) => {useRemoveFocusItemFromFocusStackById();const focusRecordTableCell = useRecoilCallback(- ({ set, snapshot }) => {+ ({ snapshot }) => {return (newPosition: TableCellPosition) => {const currentPosition = snapshot- .getLoadable(focusPositionState)+ .getLoadable(focusPositionCallbackState).getValue();if (isDefined(currentPosition)) {@@ -47,15 +47,6 @@ export const useFocusRecordTableCell = (recordTableId?: string) => {});}- set(focusPositionState, newPosition);-- if (isDefined(currentPosition)) {- setIsRecordTableCellFocusActive({- isRecordTableFocusActive: false,- cellPosition: currentPosition,- });- }-setIsRecordTableCellFocusActive({isRecordTableFocusActive: true,cellPosition: newPosition,@@ -76,7 +67,7 @@ export const useFocusRecordTableCell = (recordTableId?: string) => {};},[- focusPositionState,+ focusPositionCallbackState,recordTableIdFromProps,removeFocusItemFromFocusStackById,setIsRecordTableCellFocusActive,diff --git a/packages/twenty-front/src/modules/object-record/record-table/record-table-cell/hooks/useSetIsRecordTableCellFocusActive.ts b/packages/twenty-front/src/modules/object-record/record-table/record-table-cell/hooks/useSetIsRecordTableCellFocusActive.tsindex b9159efb5c9..25d5268ad35 100644--- a/packages/twenty-front/src/modules/object-record/record-table/record-table-cell/hooks/useSetIsRecordTableCellFocusActive.ts+++ b/packages/twenty-front/src/modules/object-record/record-table/record-table-cell/hooks/useSetIsRecordTableCellFocusActive.ts@@ -1,14 +1,20 @@import { isRecordTableCellFocusActiveComponentState } from '@/object-record/record-table/states/isRecordTableCellFocusActiveComponentState';+import { recordTableFocusPositionComponentState } from '@/object-record/record-table/states/recordTableFocusPositionComponentState';import { type TableCellPosition } from '@/object-record/record-table/types/TableCellPosition';import { useRecoilComponentCallbackState } from '@/ui/utilities/state/component-state/hooks/useRecoilComponentCallbackState';import { useRecoilCallback } from 'recoil';export const useSetIsRecordTableCellFocusActive = (recordTableId?: string) => {- const isRecordTableFocusActiveState = useRecoilComponentCallbackState(+ const isRecordTableFocusActiveCallbackState = useRecoilComponentCallbackState(isRecordTableCellFocusActiveComponentState,recordTableId,);+ const recordTableFocusPositionCallbackState = useRecoilComponentCallbackState(+ recordTableFocusPositionComponentState,+ recordTableId,+ );+const setIsRecordTableCellFocusActive = useRecoilCallback(({ set }) =>({@@ -18,21 +24,18 @@ export const useSetIsRecordTableCellFocusActive = (recordTableId?: string) => {isRecordTableFocusActive: boolean;cellPosition: TableCellPosition;}) => {- const cellId = `record-table-cell-${cellPosition.column}-${cellPosition.row}`;-- const cellElement = document.getElementById(cellId);-if (isRecordTableFocusActive) {- cellElement?.classList.add('focus-active');- }-- if (!isRecordTableFocusActive) {- cellElement?.classList.remove('focus-active');+ set(isRecordTableFocusActiveCallbackState, true);+ set(recordTableFocusPositionCallbackState, cellPosition);+ } else {+ set(isRecordTableFocusActiveCallbackState, false);+ set(recordTableFocusPositionCallbackState, null);}-- set(isRecordTableFocusActiveState, isRecordTableFocusActive);},- [isRecordTableFocusActiveState],+ [+ isRecordTableFocusActiveCallbackState,+ recordTableFocusPositionCallbackState,+ ],);return {diff --git a/packages/twenty-front/src/modules/object-record/record-table/record-table-footer/components/RecordTableAggregateFooterCell.tsx b/packages/twenty-front/src/modules/object-record/record-table/record-table-footer/components/RecordTableAggregateFooterCell.tsxindex 496d970256c..143cd90d9e0 100644--- a/packages/twenty-front/src/modules/object-record/record-table/record-table-footer/components/RecordTableAggregateFooterCell.tsx+++ b/packages/twenty-front/src/modules/object-record/record-table/record-table-footer/components/RecordTableAggregateFooterCell.tsx@@ -1,6 +1,8 @@import styled from '@emotion/styled';import { useContext } from 'react';+import { RECORD_TABLE_COLUMN_CHECKBOX_WIDTH } from '@/object-record/record-table/constants/RecordTableColumnCheckboxWidth';+import { RECORD_TABLE_COLUMN_DRAG_AND_DROP_WIDTH } from '@/object-record/record-table/constants/RecordTableColumnDragAndDropWidth';import { RECORD_TABLE_LABEL_IDENTIFIER_COLUMN_WIDTH_ON_MOBILE } from '@/object-record/record-table/constants/RecordTableLabelIdentifierColumnWidthOnMobile';import { RECORD_TABLE_ROW_HEIGHT } from '@/object-record/record-table/constants/RecordTableRowHeight';import { TABLE_Z_INDEX } from '@/object-record/record-table/constants/TableZIndex';@@ -56,7 +58,7 @@ const StyledColumnFooterCell = styled.div<{${({ isFirstCell, isTableWithGroups }) =>isFirstCell- ? `left: 48px; z-index: ${isTableWithGroups ? TABLE_Z_INDEX.footer.tableWithGroups.stickyColumn : TABLE_Z_INDEX.footer.tableWithoutGroups.stickyColumn};`+ ? `left: ${RECORD_TABLE_COLUMN_DRAG_AND_DROP_WIDTH + RECORD_TABLE_COLUMN_CHECKBOX_WIDTH}px; z-index: ${isTableWithGroups ? TABLE_Z_INDEX.footer.tableWithGroups.stickyColumn : TABLE_Z_INDEX.footer.tableWithoutGroups.stickyColumn};`: `z-index: ${isTableWithGroups ? TABLE_Z_INDEX.footer.tableWithGroups.default : TABLE_Z_INDEX.footer.tableWithoutGroups.default};`}`;diff --git a/packages/twenty-front/src/modules/object-record/record-table/record-table-footer/components/RecordTableColumnAggregateFooterValue.tsx b/packages/twenty-front/src/modules/object-record/record-table/record-table-footer/components/RecordTableColumnAggregateFooterValue.tsxindex f6d4043997e..c32dc847924 100644--- a/packages/twenty-front/src/modules/object-record/record-table/record-table-footer/components/RecordTableColumnAggregateFooterValue.tsx+++ b/packages/twenty-front/src/modules/object-record/record-table/record-table-footer/components/RecordTableColumnAggregateFooterValue.tsx@@ -1,3 +1,4 @@+import { RECORD_TABLE_ROW_HEIGHT } from '@/object-record/record-table/constants/RecordTableRowHeight';import { useAggregateRecordsForRecordTableColumnFooter } from '@/object-record/record-table/record-table-footer/hooks/useAggregateRecordsForRecordTableColumnFooter';import styled from '@emotion/styled';import { Trans } from '@lingui/react/macro';@@ -33,7 +34,7 @@ const StyledValueContainer = styled(StyledScrollableContainer)`align-items: center;display: flex;gap: 4px;- height: 32px;+ height: ${RECORD_TABLE_ROW_HEIGHT}px;justify-content: flex-end;padding: 0 8px;`;diff --git a/packages/twenty-front/src/modules/object-record/record-table/record-table-footer/components/RecordTableColumnAggregateFooterValueCell.tsx b/packages/twenty-front/src/modules/object-record/record-table/record-table-footer/components/RecordTableColumnAggregateFooterValueCell.tsxindex 92b237f9e56..d2d8b5ef736 100644--- a/packages/twenty-front/src/modules/object-record/record-table/record-table-footer/components/RecordTableColumnAggregateFooterValueCell.tsx+++ b/packages/twenty-front/src/modules/object-record/record-table/record-table-footer/components/RecordTableColumnAggregateFooterValueCell.tsx@@ -1,5 +1,6 @@import { hasRecordGroupsComponentSelector } from '@/object-record/record-group/states/selectors/hasRecordGroupsComponentSelector';-import { TABLE_CELL_CHECKBOX_MIN_WIDTH } from '@/object-record/record-table/record-table-cell/components/RecordTableCellCheckbox';+import { RECORD_TABLE_COLUMN_CHECKBOX_WIDTH } from '@/object-record/record-table/constants/RecordTableColumnCheckboxWidth';+import { RecordTableColumnAggregateFooterCellContext } from '@/object-record/record-table/record-table-footer/components/RecordTableColumnAggregateFooterCellContext';import { RecordTableColumnAggregateFooterValue } from '@/object-record/record-table/record-table-footer/components/RecordTableColumnAggregateFooterValue';import { hasAggregateOperationForViewFieldFamilySelector } from '@/object-record/record-table/record-table-footer/states/hasAggregateOperationForViewFieldFamilySelector';@@ -33,7 +34,7 @@ const StyledCell = styled.div<{ isUnfolded: boolean; isFirstCell: boolean }>`${({ isFirstCell, theme }) =>isFirstCell &&`- padding-left: calc(${TABLE_CELL_CHECKBOX_MIN_WIDTH} + ${theme.spacing(1)});+ padding-left: calc(${RECORD_TABLE_COLUMN_CHECKBOX_WIDTH} + ${theme.spacing(1)});`}`;diff --git a/packages/twenty-front/src/modules/object-record/record-table/record-table-header/components/RecordTableHeaderCheckboxColumn.tsx b/packages/twenty-front/src/modules/object-record/record-table/record-table-header/components/RecordTableHeaderCheckboxColumn.tsxindex 7347cf0609c..e633d428bf2 100644--- a/packages/twenty-front/src/modules/object-record/record-table/record-table-header/components/RecordTableHeaderCheckboxColumn.tsx+++ b/packages/twenty-front/src/modules/object-record/record-table/record-table-header/components/RecordTableHeaderCheckboxColumn.tsx@@ -3,7 +3,9 @@ import styled from '@emotion/styled';import { recordIndexAllRecordIdsComponentSelector } from '@/object-record/record-index/states/selectors/recordIndexAllRecordIdsComponentSelector';import { hasRecordGroupsComponentSelector } from '@/object-record/record-group/states/selectors/hasRecordGroupsComponentSelector';+import { RECORD_TABLE_COLUMN_CHECKBOX_WIDTH } from '@/object-record/record-table/constants/RecordTableColumnCheckboxWidth';import { RECORD_TABLE_COLUMN_CHECKBOX_WIDTH_CLASS_NAME } from '@/object-record/record-table/constants/RecordTableColumnCheckboxWidthClassName';+import { RECORD_TABLE_ROW_HEIGHT } from '@/object-record/record-table/constants/RecordTableRowHeight';import { useRecordTableContextOrThrow } from '@/object-record/record-table/contexts/RecordTableContext';import { useResetTableRowSelection } from '@/object-record/record-table/hooks/internal/useResetTableRowSelection';import { useSelectAllRows } from '@/object-record/record-table/hooks/internal/useSelectAllRows';@@ -23,7 +25,7 @@ const StyledContainer = styled.div<{}>`align-items: center;display: flex;- height: 32px;+ height: ${RECORD_TABLE_ROW_HEIGHT}px;justify-content: center;min-width: 24px;padding-right: ${({ theme }) => theme.spacing(1)};@@ -37,12 +39,12 @@ const StyledContainer = styled.div<{const StyledColumnHeaderCell = styled.div`background-color: ${({ theme }) => theme.background.primary};- min-width: 32px;+ min-width: ${RECORD_TABLE_COLUMN_CHECKBOX_WIDTH}px;box-sizing: border-box;cursor: pointer;- max-height: 32px;+ max-height: ${RECORD_TABLE_ROW_HEIGHT}px;`;export const RecordTableHeaderCheckboxColumn = () => {diff --git a/packages/twenty-front/src/modules/object-record/record-table/record-table-header/components/RecordTableHeaderDragDropColumn.tsx b/packages/twenty-front/src/modules/object-record/record-table/record-table-header/components/RecordTableHeaderDragDropColumn.tsxindex f464baa987e..2c4a5578a89 100644--- a/packages/twenty-front/src/modules/object-record/record-table/record-table-header/components/RecordTableHeaderDragDropColumn.tsx+++ b/packages/twenty-front/src/modules/object-record/record-table/record-table-header/components/RecordTableHeaderDragDropColumn.tsx@@ -1,5 +1,7 @@import { hasRecordGroupsComponentSelector } from '@/object-record/record-group/states/selectors/hasRecordGroupsComponentSelector';+import { RECORD_TABLE_COLUMN_DRAG_AND_DROP_WIDTH } from '@/object-record/record-table/constants/RecordTableColumnDragAndDropWidth';import { RECORD_TABLE_COLUMN_DRAG_AND_DROP_WIDTH_CLASS_NAME } from '@/object-record/record-table/constants/RecordTableColumnDragAndDropWidthClassName';+import { RECORD_TABLE_ROW_HEIGHT } from '@/object-record/record-table/constants/RecordTableRowHeight';import { isRecordTableRowActiveComponentFamilyState } from '@/object-record/record-table/states/isRecordTableRowActiveComponentFamilyState';import { isRecordTableRowFocusActiveComponentState } from '@/object-record/record-table/states/isRecordTableRowFocusActiveComponentState';import { isRecordTableRowFocusedComponentFamilyState } from '@/object-record/record-table/states/isRecordTableRowFocusedComponentFamilyState';@@ -16,11 +18,11 @@ const StyledDragDropHeaderCell = styled.div<{backgroundColor: string;}>`background-color: ${({ backgroundColor }) => backgroundColor};- min-width: 16px;- width: 16px;- max-width: 16px;- min-height: 32px;- max-height: 32px;+ min-width: ${RECORD_TABLE_COLUMN_DRAG_AND_DROP_WIDTH}px;+ width: ${RECORD_TABLE_COLUMN_DRAG_AND_DROP_WIDTH}px;+ max-width: ${RECORD_TABLE_COLUMN_DRAG_AND_DROP_WIDTH}px;+ min-height: ${RECORD_TABLE_ROW_HEIGHT}px;+ max-height: ${RECORD_TABLE_ROW_HEIGHT}px;cursor: pointer;diff --git a/packages/twenty-front/src/modules/object-record/record-table/record-table-header/components/RecordTableHeaderLastEmptyColumn.tsx b/packages/twenty-front/src/modules/object-record/record-table/record-table-header/components/RecordTableHeaderLastEmptyColumn.tsxindex 9d3d1d17560..28f93828062 100644--- a/packages/twenty-front/src/modules/object-record/record-table/record-table-header/components/RecordTableHeaderLastEmptyColumn.tsx+++ b/packages/twenty-front/src/modules/object-record/record-table/record-table-header/components/RecordTableHeaderLastEmptyColumn.tsx@@ -1,5 +1,6 @@import { hasRecordGroupsComponentSelector } from '@/object-record/record-group/states/selectors/hasRecordGroupsComponentSelector';import { RECORD_TABLE_COLUMN_LAST_EMPTY_COLUMN_WIDTH_CLASS_NAME } from '@/object-record/record-table/constants/RecordTableColumnLastEmptyColumnWidthClassName';+import { RECORD_TABLE_ROW_HEIGHT } from '@/object-record/record-table/constants/RecordTableRowHeight';import { isRecordTableRowActiveComponentFamilyState } from '@/object-record/record-table/states/isRecordTableRowActiveComponentFamilyState';import { isRecordTableRowFocusActiveComponentState } from '@/object-record/record-table/states/isRecordTableRowFocusActiveComponentState';import { isRecordTableRowFocusedComponentFamilyState } from '@/object-record/record-table/states/isRecordTableRowFocusedComponentFamilyState';@@ -23,8 +24,8 @@ const StyledLastColumnHeader = styled.div<{cursor: pointer;- height: 32px;- max-height: 32px;+ height: ${RECORD_TABLE_ROW_HEIGHT}px;+ max-height: ${RECORD_TABLE_ROW_HEIGHT}px;`;export const RecordTableHeaderLastEmptyColumn = () => {diff --git a/packages/twenty-front/src/modules/object-record/record-table/record-table-row/components/RecordTableActionRow.tsx b/packages/twenty-front/src/modules/object-record/record-table/record-table-row/components/RecordTableActionRow.tsxindex 3660dab1193..d59eacb2e53 100644--- a/packages/twenty-front/src/modules/object-record/record-table/record-table-row/components/RecordTableActionRow.tsx+++ b/packages/twenty-front/src/modules/object-record/record-table/record-table-row/components/RecordTableActionRow.tsx@@ -2,10 +2,11 @@ import styled from '@emotion/styled';import { useRecordIndexContextOrThrow } from '@/object-record/record-index/contexts/RecordIndexContext';import { RECORD_TABLE_COLUMN_CHECKBOX_WIDTH } from '@/object-record/record-table/constants/RecordTableColumnCheckboxWidth';+import { RECORD_TABLE_COLUMN_DRAG_AND_DROP_WIDTH } from '@/object-record/record-table/constants/RecordTableColumnDragAndDropWidth';import { RECORD_TABLE_ROW_HEIGHT } from '@/object-record/record-table/constants/RecordTableRowHeight';import { useRecordTableContextOrThrow } from '@/object-record/record-table/contexts/RecordTableContext';+import { RecordTableDragAndDropPlaceholderCell } from '@/object-record/record-table/record-table-cell/components/RecordTableDragAndDropPlaceholderCell';import { RecordTableAddButtonPlaceholderCell } from '@/object-record/record-table/record-table-row/components/RecordTableAddButtonPlaceholderCell';-import { RecordTableDragAndDropPlaceholderCell } from '@/object-record/record-table/record-table-row/components/RecordTableDragAndDropPlaceholderCell';import { RecordTableGroupSectionLastDynamicFillingCell } from '@/object-record/record-table/record-table-row/components/RecordTableGroupSectionLastDynamicFillingCell';import { useTheme } from '@emotion/react';import {@@ -62,7 +63,7 @@ const StyledIconContainer = styled.div`width: ${RECORD_TABLE_COLUMN_CHECKBOX_WIDTH}px;position: sticky;- left: 16px;+ left: ${RECORD_TABLE_COLUMN_DRAG_AND_DROP_WIDTH}px;`;const StyledActionTextContainer = styled.div<{ width: number }>`@@ -74,7 +75,8 @@ const StyledActionTextContainer = styled.div<{ width: number }>`height: ${RECORD_TABLE_ROW_HEIGHT}px;justify-content: start;- left: 48px;+ left: ${RECORD_TABLE_COLUMN_DRAG_AND_DROP_WIDTH ++ RECORD_TABLE_COLUMN_CHECKBOX_WIDTH}px;position: sticky;width: ${({ width }) => width}px;`;diff --git a/packages/twenty-front/src/modules/object-record/record-table/record-table-row/components/RecordTableRow.tsx b/packages/twenty-front/src/modules/object-record/record-table/record-table-row/components/RecordTableRow.tsxindex e7023d9b9a4..6584e5a4949 100644--- a/packages/twenty-front/src/modules/object-record/record-table/record-table-row/components/RecordTableRow.tsx+++ b/packages/twenty-front/src/modules/object-record/record-table/record-table-row/components/RecordTableRow.tsx@@ -1,6 +1,6 @@import { useRecordIndexContextOrThrow } from '@/object-record/record-index/contexts/RecordIndexContext';import { RecordTableCellCheckbox } from '@/object-record/record-table/record-table-cell/components/RecordTableCellCheckbox';-import { RecordTableCellGrip } from '@/object-record/record-table/record-table-cell/components/RecordTableCellGrip';+import { RecordTableCellDragAndDrop } from '@/object-record/record-table/record-table-cell/components/RecordTableCellDragAndDrop';import { RecordTableLastEmptyCell } from '@/object-record/record-table/record-table-cell/components/RecordTableLastEmptyCell';import { RecordTablePlusButtonCellPlaceholder } from '@/object-record/record-table/record-table-cell/components/RecordTablePlusButtonCellPlaceholder';import { RecordTableCells } from '@/object-record/record-table/record-table-row/components/RecordTableCells';@@ -52,7 +52,7 @@ export const RecordTableRow = ({<RecordTableRowArrowKeysEffect /></>)}- <RecordTableCellGrip />+ <RecordTableCellDragAndDrop /><RecordTableCellCheckbox /><RecordTableCells /><RecordTablePlusButtonCellPlaceholder />@@ -75,7 +75,7 @@ export const RecordTableRow = ({<RecordTableRowArrowKeysEffect /></>)}- <RecordTableCellGrip />+ <RecordTableCellDragAndDrop /><RecordTableCellCheckbox /><RecordTableCells /><RecordTablePlusButtonCellPlaceholder />diff --git a/packages/twenty-front/src/modules/object-record/record-table/record-table-section/components/RecordTableRecordGroupSection.tsx b/packages/twenty-front/src/modules/object-record/record-table/record-table-section/components/RecordTableRecordGroupSection.tsxindex 512ab0b6865..17135625144 100644--- a/packages/twenty-front/src/modules/object-record/record-table/record-table-section/components/RecordTableRecordGroupSection.tsx+++ b/packages/twenty-front/src/modules/object-record/record-table/record-table-section/components/RecordTableRecordGroupSection.tsx@@ -17,6 +17,7 @@ import { useRecordTableContextOrThrow } from '@/object-record/record-table/conteimport { RecordTableAddButtonPlaceholderCell } from '@/object-record/record-table/record-table-row/components/RecordTableAddButtonPlaceholderCell';import { RecordTableGroupSectionLastDynamicFillingCell } from '@/object-record/record-table/record-table-row/components/RecordTableGroupSectionLastDynamicFillingCell';+import { RECORD_TABLE_COLUMN_CHECKBOX_WIDTH } from '@/object-record/record-table/constants/RecordTableColumnCheckboxWidth';import { useAggregateRecordsForRecordTableSection } from '@/object-record/record-table/record-table-section/hooks/useAggregateRecordsForRecordTableSection';import { isRecordGroupTableSectionToggledComponentState } from '@/object-record/record-table/record-table-section/states/isRecordGroupTableSectionToggledComponentState';import { isRecordTableRowActiveComponentFamilyState } from '@/object-record/record-table/states/isRecordTableRowActiveComponentFamilyState';@@ -54,11 +55,11 @@ const StyledChevronContainer = styled.div`display: flex;text-align: center;vertical-align: middle;- width: 32px;- min-width: 32px;+ width: ${RECORD_TABLE_COLUMN_CHECKBOX_WIDTH}px;+ min-width: ${RECORD_TABLE_COLUMN_CHECKBOX_WIDTH}px;position: sticky;- left: 16px;+ left: ${RECORD_TABLE_COLUMN_DRAG_AND_DROP_WIDTH}px;z-index: ${TABLE_Z_INDEX.groupSection.stickyCell};`;@@ -76,12 +77,13 @@ const StyledRecordGroupSection = styled.div<{ width: number }>`display: flex;flex-direction: row;gap: ${({ theme }) => theme.spacing(1)};- height: 32px;+ height: ${RECORD_TABLE_ROW_HEIGHT}px;width: ${({ width }) => width}px;min-width: ${({ width }) => width}px;position: sticky;- left: 48px;+ left: ${RECORD_TABLE_COLUMN_DRAG_AND_DROP_WIDTH ++ RECORD_TABLE_COLUMN_CHECKBOX_WIDTH}px;z-index: ${TABLE_Z_INDEX.groupSection.stickyCell};`;diff --git a/packages/twenty-front/src/modules/settings/roles/role-permissions/object-level-permissions/object-form/components/OverridableCheckbox.tsx b/packages/twenty-front/src/modules/settings/roles/role-permissions/object-level-permissions/object-form/components/OverridableCheckbox.tsxindex c603ecfbc25..898c2f65c15 100644--- a/packages/twenty-front/src/modules/settings/roles/role-permissions/object-level-permissions/object-form/components/OverridableCheckbox.tsx+++ b/packages/twenty-front/src/modules/settings/roles/role-permissions/object-level-permissions/object-form/components/OverridableCheckbox.tsx@@ -1,3 +1,5 @@+import { RECORD_TABLE_COLUMN_CHECKBOX_WIDTH } from '@/object-record/record-table/constants/RecordTableColumnCheckboxWidth';+import { RECORD_TABLE_COLUMN_DRAG_AND_DROP_WIDTH } from '@/object-record/record-table/constants/RecordTableColumnDragAndDropWidth';import { useTheme } from '@emotion/react';import styled from '@emotion/styled';import { IconReload, IconX } from 'twenty-ui/display';@@ -10,7 +12,8 @@ const StyledOverridableCheckboxContainer = styled.div`align-items: center;display: inline-flex;justify-content: flex-start;- width: 48px;+ width: ${RECORD_TABLE_COLUMN_DRAG_AND_DROP_WIDTH ++ RECORD_TABLE_COLUMN_CHECKBOX_WIDTH}px;`;const StyledOverridableCheckboxContainerItem = styled.div`diff --git a/packages/twenty-front/src/modules/ui/layout/dropdown/components/StyledDropdownButtonContainer.tsx b/packages/twenty-front/src/modules/ui/layout/dropdown/components/StyledDropdownButtonContainer.tsxindex 1563b7c7042..5b4ec6a72d9 100644--- a/packages/twenty-front/src/modules/ui/layout/dropdown/components/StyledDropdownButtonContainer.tsx+++ b/packages/twenty-front/src/modules/ui/layout/dropdown/components/StyledDropdownButtonContainer.tsx@@ -21,7 +21,7 @@ export const StyledDropdownButtonContainer = styled.div<StyledDropdownButtonPropdisplay: flex;padding: ${({ theme }) => theme.spacing(1)};- padding-left: ${({ theme }) => theme.spacing(2)};+ padding-left: ${({ theme }) => theme.spacing(1)};padding-right: ${({ theme }) => theme.spacing(2)};user-select: none;diff --git a/packages/twenty-front/src/modules/ui/layout/top-bar/components/TopBar.tsx b/packages/twenty-front/src/modules/ui/layout/top-bar/components/TopBar.tsxindex 921ab47644d..7ae9ddac47c 100644--- a/packages/twenty-front/src/modules/ui/layout/top-bar/components/TopBar.tsx+++ b/packages/twenty-front/src/modules/ui/layout/top-bar/components/TopBar.tsx@@ -12,7 +12,7 @@ type TopBarProps = {const StyledContainer = styled.div`border-bottom: ${({ theme }) => `1px solid ${theme.border.color.light}`};display: flex;- margin-left: ${({ theme }) => theme.spacing(2)};+ margin-left: ${({ theme }) => theme.spacing(3)};flex-direction: column;`;diff --git a/packages/twenty-front/src/modules/views/components/ViewBarDetails.tsx b/packages/twenty-front/src/modules/views/components/ViewBarDetails.tsxindex 2b9ef3f6d38..329a879a23d 100644--- a/packages/twenty-front/src/modules/views/components/ViewBarDetails.tsx+++ b/packages/twenty-front/src/modules/views/components/ViewBarDetails.tsx@@ -54,7 +54,6 @@ const StyledBar = styled.div`min-height: 32px;padding-top: ${({ theme }) => theme.spacing(1)};padding-bottom: ${({ theme }) => theme.spacing(1)};- padding-left: ${({ theme }) => theme.spacing(2)};z-index: 4;`;