diff --git a/packages/twenty-front/project.json b/packages/twenty-front/project.json index e48030ff4f..c2937e4f03 100644 --- a/packages/twenty-front/project.json +++ b/packages/twenty-front/project.json @@ -89,11 +89,11 @@ "executor": "nx:run-commands", "options": { "cwd": "{projectRoot}", - "command": "FILES=$(git diff --name-only --diff-filter=d main...HEAD -- src/ | grep -E '\\.(ts|tsx)$'); [ -z \"$FILES\" ] && echo 'No changed files.' || (npx oxlint --type-aware -c .oxlintrc.json $FILES && (prettier --check $FILES || (echo 'ERROR: Prettier formatting check failed! Fix with: npx nx lint:diff-with-main twenty-front --configuration=fix' && false)))" + "command": "FILES=$(git diff --name-only --relative --diff-filter=d main...HEAD -- src/ | grep -E '\\.(ts|tsx)$'); [ -z \"$FILES\" ] && echo 'No changed files.' || (npx oxlint --type-aware -c .oxlintrc.json $FILES && (prettier --check $FILES || (echo 'ERROR: Prettier formatting check failed! Fix with: npx nx lint:diff-with-main twenty-front --configuration=fix' && false)))" }, "configurations": { "fix": { - "command": "FILES=$(git diff --name-only --diff-filter=d main...HEAD -- src/ | grep -E '\\.(ts|tsx)$'); [ -z \"$FILES\" ] && echo 'No changed files.' || (npx oxlint --type-aware --fix -c .oxlintrc.json $FILES && prettier --write $FILES)" + "command": "FILES=$(git diff --name-only --relative --diff-filter=d main...HEAD -- src/ | grep -E '\\.(ts|tsx)$'); [ -z \"$FILES\" ] && echo 'No changed files.' || (npx oxlint --type-aware --fix -c .oxlintrc.json $FILES && prettier --write $FILES)" } } }, diff --git a/packages/twenty-front/src/modules/page-layout/components/PageLayoutTabRenderClone.tsx b/packages/twenty-front/src/modules/page-layout/components/PageLayoutTabRenderClone.tsx index ef1f7dbaac..59e8080b28 100644 --- a/packages/twenty-front/src/modules/page-layout/components/PageLayoutTabRenderClone.tsx +++ b/packages/twenty-front/src/modules/page-layout/components/PageLayoutTabRenderClone.tsx @@ -5,12 +5,12 @@ import { GenericDropdownContentWidth } from '@/ui/layout/dropdown/constants/Gene import { TabAvatar } from '@/ui/layout/tab-list/components/TabAvatar'; import { type SingleTabProps } from '@/ui/layout/tab-list/types/SingleTabProps'; import { useAtomComponentStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomComponentStateValue'; -import { styled } from '@linaria/react'; import { type DraggableProvided } from '@hello-pangea/dnd'; +import { styled } from '@linaria/react'; +import { useContext } from 'react'; import { StyledTabContainer, TabContent } from 'twenty-ui/input'; import { MenuItemSelectAvatar } from 'twenty-ui/navigation'; import { ThemeContext } from 'twenty-ui/theme-constants'; -import { useContext } from 'react'; const StyledDraggableWrapper = styled.div` cursor: grab; display: flex; @@ -35,8 +35,8 @@ export const PageLayoutTabRenderClone = ({ ); const isHoveringTabList = - pageLayoutTabListCurrentDragDroppableId === - PAGE_LAYOUT_TAB_LIST_DROPPABLE_IDS.VISIBLE_TABS; + pageLayoutTabListCurrentDragDroppableId !== + PAGE_LAYOUT_TAB_LIST_DROPPABLE_IDS.OVERFLOW_TABS; if (!isDefined(tab)) return null;