Skip to content

Conversation

totase
Copy link
Owner

@totase totase commented Jan 23, 2025

This pull request introduces several updates to the ContextMenu component, including the addition of a SubMenu feature and various enhancements to the existing functionality. The changes span multiple files, with significant updates to the component structure, utility functions, and styles.

New Feature: SubMenu

  • src/components/SubMenu.tsx: Added a new SubMenu component to support nested menu items. This includes logic for positioning and visibility management.
  • app/components/App.tsx: Integrated the new SubMenu component within the ContextMenu structure.

Component Enhancements

Utility and Style Updates

  • src/utils.ts: Renamed the validateWindowPosition function to validateMenuPosition and updated the cloneChildren function to handle optional props. [1] [2]
  • src/styles.css: Added styles for the SubMenu component, including positioning and hover effects. Adjusted existing styles for better integration with the new submenu feature. [1] [2] [3] [4]

Export Updates

@totase totase merged commit d81b064 into main Jan 23, 2025
4 checks passed
@totase totase deleted the feat/sub-menu branch January 23, 2025 11:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant