Skip to content

feat(NavigationTree): collapse childless nodes#84

Merged
artemmufazalov merged 1 commit intomainfrom
collapse-childless-nodes
Jan 22, 2025
Merged

feat(NavigationTree): collapse childless nodes#84
artemmufazalov merged 1 commit intomainfrom
collapse-childless-nodes

Conversation

@artemmufazalov
Copy link
Copy Markdown
Member

If node has no children, collapse it once it is loaded. Part of ydb-platform/ydb-embedded-ui#1836

Screen.Recording.2025-01-22.at.16.02.55.mov

Comment thread src/components/NavigationTree/state.ts Outdated
path,
});
interface NavigationTreeReducerOptions {
collapseChildlessNodes?: boolean;
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's remove this new option and implement a new behaviour by default

@artemmufazalov artemmufazalov force-pushed the collapse-childless-nodes branch from 4d23d65 to fe038e7 Compare January 22, 2025 14:26
@artemmufazalov artemmufazalov changed the title feat(NavigationTree): add collapseChildlessNodes option feat(NavigationTree): collapse childless nodes Jan 22, 2025
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.

2 participants