pancake-frontend icon indicating copy to clipboard operation
pancake-frontend copied to clipboard

fix: Farm types inline menu jumping/disappears when toggling

Open memoyil opened this issue 7 months ago • 2 comments

Disappears from view in mobile:

https://github.com/user-attachments/assets/fdc667f3-04fd-4324-8da2-a5acb9cd64ad

Position change in desktop:

https://github.com/user-attachments/assets/8e107733-3175-4ea9-966b-dc1486020b8f


PR-Codex overview

The focus of this PR is to refactor the InlineMenu and BaseMenu components, adding a new children function prop for more flexibility.

Detailed summary

  • Refactored InlineMenu and BaseMenu components
  • Added ChildrenFunctionProps type for children function prop
  • Updated BaseMenu to accept children as a function
  • Added toggle, open, close, and update functions to ChildrenFunctionProps

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

memoyil avatar Jul 18 '24 12:07 memoyil