diff --git a/src/components/ProjectInfo/ProjectInfo.jsx b/src/components/ProjectInfo/ProjectInfo.jsx index 2b8f3e6d6..5de8c8916 100644 --- a/src/components/ProjectInfo/ProjectInfo.jsx +++ b/src/components/ProjectInfo/ProjectInfo.jsx @@ -9,6 +9,8 @@ import MobileExpandable from '../MobileExpandable/MobileExpandable' import MediaQuery from 'react-responsive' import { SCREEN_BREAKPOINT_MD, PROJECT_STATUS_ACTIVE, PHASE_STATUS_ACTIVE, PHASE_STATUS_REVIEWED, PROJECT_ROLE_OWNER, PROJECT_ROLE_CUSTOMER } from '../../config/constants' import ReviewProjectButton from '../../projects/detail/components/ReviewProjectButton' +import Tooltip from 'appirio-tech-react-components/components/Tooltip/Tooltip' +import { TOOLTIP_DEFAULT_DELAY } from '../../config/constants' import './ProjectInfo.scss' @@ -51,24 +53,39 @@ class ProjectInfo extends Component { return (
-
-
{_.unescape(project.name)}
-
Created {moment(project.createdAt).format('MMM DD, YYYY')}
- {!!code &&
{_.unescape(code)}
} +
{_.unescape(project.name)}
+ +
+
+ Created {moment(project.createdAt).format('MMM DD, YYYY')} +
+ {!!code && +
+ +
+
{_.unescape(code)}
+
+
+ {_.unescape(code)} +
+
+
+ + }
- {showDeleteConfirm && + {showDeleteConfirm && ( - } + )} {showReviewBtn ? ( reviewButtonSection ) : ( - {(matches) => ( + {matches => ( { const code = _.get(item, 'details.utm.code', '') return (
- {code} +
+ +
+ {code} +
+
+ {code} +
+
+
) } diff --git a/src/projects/list/components/Projects/ProjectsGridView.scss b/src/projects/list/components/Projects/ProjectsGridView.scss index e4987fa74..197f56de7 100644 --- a/src/projects/list/components/Projects/ProjectsGridView.scss +++ b/src/projects/list/components/Projects/ProjectsGridView.scss @@ -26,6 +26,42 @@ $screen-one-column: 720px; .item-ref-code { flex: 1 3 100px; min-width: 100px; + + .time-container { + display: flex; + width: 100%; + padding-right: 10px; + + .code-tooltip-container { + display: flex; + width: 100%; + + .Tooltip { + max-width: 100%; + + .tooltip-target { + display: flex; + } + + .tooltip-body { + display: flex; + + span { + width: 200px; + white-space: normal; + display: flex; + justify-content: center; + } + } + } + } + + span { + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + } + } } .item-status-date {