-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Segment multiselect #7242
Segment multiselect #7242
Conversation
@@ -455,7 +457,7 @@ function _SegmentListItem({ | |||
padding: "2px 5px", | |||
}} | |||
className={classnames("segment-list-item", { | |||
"is-selected-cell": segment.id === selectedSegmentId, | |||
"is-selected-cell": selectedSegmentIds?.includes(segment.id), //TODO this wont work |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what exactly does this do? If I set it to false the segments are selected nonetheless?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(will delete the TODO comment obviously)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will test whether this can be deleted
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so this actually makes the coloring a little better, but the box thats created while hovering has a different size than the box thats created upon selection, so I will see whether I can maybe improve this.
@@ -466,7 +465,11 @@ function _SegmentListItem({ | |||
}} | |||
> | |||
<Dropdown |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@philippotto I know we talked about increasing the zone where a segment item can be right-clicked by letting the dropdown be the parent of more content. I did not manage to do that however, because then the segment name would not react to the click anymore (so only the MeshInfoItem
) – I had tried to include the MeshInfoItem
into the dropdown.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Didn't test yet, but looks pretty good already :)
frontend/javascripts/oxalis/view/right-border-tabs/segments_tab/segment_list_item.tsx
Outdated
Show resolved
Hide resolved
frontend/javascripts/oxalis/view/right-border-tabs/segments_tab/segment_list_item.tsx
Outdated
Show resolved
Hide resolved
frontend/javascripts/oxalis/view/right-border-tabs/segments_tab/segments_view.tsx
Outdated
Show resolved
Hide resolved
frontend/javascripts/oxalis/view/right-border-tabs/segments_tab/segments_view.tsx
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome, works really well 👍 Please merge on Monday :)
Steps to test:
TODOs:
Issues:
(Please delete unneeded items, merge only when none are left open)