-
Notifications
You must be signed in to change notification settings - Fork 2
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
Show current analysis session menu items and sort the menu #294
Conversation
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.
Looks good now! I've made some changes to remove the highlight again and I currently don't have a better idea for the correct tab (see my comments below). We can improve it in an upcoming iteration.
|
||
currentSessionNav.onclick = (event) => { | ||
event.preventDefault(); | ||
setActiveTab(tabs[1]); // TODO: find better way to identify the tabs |
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.
I also don't have a better idea right now. We have to refactor/extract the tabs anyway to somewhere else in the future. Maybe then we have a better idea.
@@ -166,7 +183,7 @@ export function CommonSessionCard({cardName, faIcon, cardInfo, children}: ICommo | |||
|
|||
return <> | |||
<h4 className="text-left d-flex align-items-center mb-3"><i className={`mr-2 ordino-icon-2 fas ${faIcon}`} ></i>{cardName}</h4> | |||
<Card ref={parent} className="shadow-sm"> | |||
<Card ref={parent} className={`card-shadow ${highlight ? 'highlight-card' : ''}`} onAnimationStart={onHighlightAnimationStart} onAnimationEnd={onHighlightAnimationEnd}> |
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.
I've added the onAnimationStart
and onAnimationEnd
event listeners from React. They are fired when the CSS animation starts/ends.
Closes Caleydo/tdp_bi_bioinfodb#1216, Caleydo/tdp_bi_bioinfodb#1212
Related PR Caleydo/ordino_public#90
Summary
TODO
Screenshot