Skip to content

Commit

Permalink
[FIX] slash-menu-height-fix (twentyhq#8327)
Browse files Browse the repository at this point in the history
FIX twentyhq#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 <[email protected]>
  • Loading branch information
Hitarthsheth07 and lucasbordeau authored Nov 8, 2024
1 parent 354ee86 commit 6ec8a5b
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 6ec8a5b

Please sign in to comment.