Skip to content

The open alternative to Salesforce, designed for AI.

Command menu mobile - Prevent overflow on navigation bar (#11480)

Thomas Trompette5d9cd257ae05
diff --git a/packages/twenty-front/src/modules/command-menu/components/CommandMenuList.tsx b/packages/twenty-front/src/modules/command-menu/components/CommandMenuList.tsx
index 2517390d178..d2016d7f91f 100644
--- a/packages/twenty-front/src/modules/command-menu/components/CommandMenuList.tsx
+++ b/packages/twenty-front/src/modules/command-menu/components/CommandMenuList.tsx
@@ -43,6 +43,10 @@ const StyledInnerList = styled.div`
}
`;
+const StyledCommandMenuList = styled.div`
+ overflow-y: hidden;
+`;
+
const StyledEmpty = styled.div`
align-items: center;
color: ${({ theme }) => theme.font.color.light};
@@ -68,7 +72,7 @@ export const CommandMenuList = ({
);
return (
- <>
+ <StyledCommandMenuList>
<CommandMenuDefaultSelectionEffect
selectableItemIds={selectableItemIds}
/>
@@ -104,6 +108,6 @@ export const CommandMenuList = ({
</SelectableList>
</StyledInnerList>
</ScrollWrapper>
- </>
+ </StyledCommandMenuList>
);
};
diff --git a/packages/twenty-ui/src/navigation/menu-item/components/MenuItemCommand.tsx b/packages/twenty-ui/src/navigation/menu-item/components/MenuItemCommand.tsx
index b027c7a435d..93b6bf199e1 100644
--- a/packages/twenty-ui/src/navigation/menu-item/components/MenuItemCommand.tsx
+++ b/packages/twenty-ui/src/navigation/menu-item/components/MenuItemCommand.tsx
@@ -78,6 +78,7 @@ const StyledTextContainer = styled.div`
display: flex;
flex-direction: row;
max-width: calc(100% - 2 * var(--horizontal-padding));
+ overflow: hidden;
`;
export type MenuItemCommandProps = {