ohif-viewer/platform/ui/src/components/NavBar/NavBar.tsx

31 lines
728 B
TypeScript
Raw Normal View History

2020-03-27 15:48:28 +01:00
import React from 'react';
2020-03-27 15:58:28 +01:00
import PropTypes from 'prop-types';
import classnames from 'classnames';
2020-03-27 15:48:28 +01:00
const stickyClasses = 'sticky top-0';
const notStickyClasses = 'relative';
const NavBar = ({ className, children, isSticky }) => {
2020-03-27 15:58:28 +01:00
return (
<div
className={classnames(
'bg-secondary-dark z-20 flex flex-row items-center border-b-4 border-black px-1',
isSticky && stickyClasses,
!isSticky && notStickyClasses,
2020-03-27 15:58:28 +01:00
className
)}
fix/chore: Various style improvements (#2015) * Update all the icons * Turn off global tool sync; watch as the world burns * Shift a bunch of things around so we can start tracking/setting per element * ToolBarService to initiate one of three different calls; callback passed to all button types * SplitButton and Toolbar Button to use new `onInteraction` prop and new toolbar state * Changes to toolbar button interface and config * Fix broken layout selector * Update SR viewport to activate tools in viewport component * Duplicate activation logic in measurement tracking extension * Add alternative/dashed variants for SR Viewport * pass through "setToolActive" commands for other viewport types * fix small overlay bugs (no wwwc or scale info) * Show SpacingBetweenSlices instead of PixelSpacing in patient information dialog * Fix prop-types * Update tracked viewport to have alternative tracked styling * alt styling for SR viewports * Update to support isLocked + isRehydratable * fix broken logic * fix broken logic * switch icon style * fix icon styles * hover and click to start flow * expedited workflow when data is not dirty (just after SR hydration) * fix: setting elliptical roi tool * fix arrow annotate dialog * fix: do not show learn more button for now * remove dead code * simpler cache invalidation * simpler cache invalidation part 2 * Fix for unable to spand study cards on separate pages * fix: viewport grid area top padding should align with sidepanel gap * fix: don't wrap split button list item text * fix: cine player moz/chrome styles * fix: split button arrows * fix: tighten toolbar and splitbutton styles * chore: clean up worklist sort logic
2020-09-21 10:42:53 +02:00
style={{ paddingTop: '4px', paddingBottom: '4px', minHeight: '52px' }}
2020-03-27 15:58:28 +01:00
>
{children}
</div>
);
};
2020-03-27 17:18:01 +01:00
NavBar.propTypes = {
2020-03-27 15:58:28 +01:00
className: PropTypes.string,
children: PropTypes.node,
isSticky: PropTypes.bool,
2020-03-27 15:48:28 +01:00
};
2020-03-27 17:18:01 +01:00
export default NavBar;