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

Fix https://github.com/twentyhq/twenty/issues/11413
This commit is contained in:
Thomas Trompette
2025-04-09 17:16:46 +02:00
committed by GitHub
parent 025e50645d
commit 5d9cd257ae
2 changed files with 7 additions and 2 deletions

View File

@ -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>
);
};

View File

@ -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 = {