Command menu mobile - Prevent overflow on navigation bar (#11480)
Fix https://github.com/twentyhq/twenty/issues/11413
This commit is contained in:
@ -43,6 +43,10 @@ const StyledInnerList = styled.div`
|
|||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
|
|
||||||
|
const StyledCommandMenuList = styled.div`
|
||||||
|
overflow-y: hidden;
|
||||||
|
`;
|
||||||
|
|
||||||
const StyledEmpty = styled.div`
|
const StyledEmpty = styled.div`
|
||||||
align-items: center;
|
align-items: center;
|
||||||
color: ${({ theme }) => theme.font.color.light};
|
color: ${({ theme }) => theme.font.color.light};
|
||||||
@ -68,7 +72,7 @@ export const CommandMenuList = ({
|
|||||||
);
|
);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<StyledCommandMenuList>
|
||||||
<CommandMenuDefaultSelectionEffect
|
<CommandMenuDefaultSelectionEffect
|
||||||
selectableItemIds={selectableItemIds}
|
selectableItemIds={selectableItemIds}
|
||||||
/>
|
/>
|
||||||
@ -104,6 +108,6 @@ export const CommandMenuList = ({
|
|||||||
</SelectableList>
|
</SelectableList>
|
||||||
</StyledInnerList>
|
</StyledInnerList>
|
||||||
</ScrollWrapper>
|
</ScrollWrapper>
|
||||||
</>
|
</StyledCommandMenuList>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
@ -78,6 +78,7 @@ const StyledTextContainer = styled.div`
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
max-width: calc(100% - 2 * var(--horizontal-padding));
|
max-width: calc(100% - 2 * var(--horizontal-padding));
|
||||||
|
overflow: hidden;
|
||||||
`;
|
`;
|
||||||
|
|
||||||
export type MenuItemCommandProps = {
|
export type MenuItemCommandProps = {
|
||||||
|
|||||||
Reference in New Issue
Block a user