[FIX] slash-menu-height-fix (#8327)

FIX #8326 

I've used the `height: fit-content` property just for customSlashMenu
but I think it will work for all dropdown menu's.
I tested it for a few and works fine, but not sure for edge cases. 

Let me know if the height should be changed to `fir-content`


![image](https://github.com/user-attachments/assets/dacbedb5-08e0-4d08-8952-21d8b9de1176)

---------

Co-authored-by: Lucas Bordeau <bordeau.lucas@gmail.com>
This commit is contained in:
Hitarth Sheth
2024-11-08 11:22:18 -05:00
committed by GitHub
parent 354ee86cb9
commit 6ec8a5b76e

View File

@@ -18,12 +18,11 @@ const StyledDropdownMenu = styled.div<{
border: ${({ disableBorder, theme }) =>
disableBorder ? 'none' : `1px solid ${theme.border.color.medium}`};
border-radius: ${({ theme }) => theme.border.radius.md};
box-shadow: ${({ theme }) => theme.boxShadow.strong};
display: flex;
height: auto;
height: fit-content;
flex-direction: column;
z-index: 30;