diff --git a/src/pages/console/containers/Dashboard/Admin/History/Card.jsx b/src/pages/console/containers/Dashboard/Admin/History/Card.jsx index d6b733acaa7..6ac09d30525 100644 --- a/src/pages/console/containers/Dashboard/Admin/History/Card.jsx +++ b/src/pages/console/containers/Dashboard/Admin/History/Card.jsx @@ -82,7 +82,7 @@ export default class Card extends Component { ) { return ( - + + {getDisplayName(data)} + {this.renderTags()} + + } description={t( `WORKBENCH_${data.type.replace(/[-\s+]/g, '_').toUpperCase()}` )} ellipsis /> - {this.renderTags()} {data.isFedManaged && ( +
{histories.map(item => ( ))} diff --git a/src/pages/console/containers/Dashboard/Admin/History/index.scss b/src/pages/console/containers/Dashboard/Admin/History/index.scss index 3c7e22efb44..f4657a5ccdb 100644 --- a/src/pages/console/containers/Dashboard/Admin/History/index.scss +++ b/src/pages/console/containers/Dashboard/Admin/History/index.scss @@ -8,30 +8,23 @@ background-color: #ffffff; } -.histories { - margin-bottom: -12px; +.historiesNew { + display: grid; + grid-template-columns: repeat(4, minmax(0, 1fr)); + row-gap: 12px; + column-gap: 12px; +} +.historiesNew, +.histories { & > a { - display: inline-block; - vertical-align: middle; position: relative; - width: calc(20% - 11px); - margin-bottom: 12px; - margin-right: 12px; - padding: 11px 12px; + padding: 12px; border-radius: 3px; background-color: $card-bg-color; transition: all $trans-speed ease-in-out; - &:nth-child(5n + 5) { - margin-right: 0; - } - .tagWrapper { - position: absolute; - top: 12px; - right: 12px; - left: 100px; text-align: right; > span { max-width: 100%; @@ -41,11 +34,24 @@ background: #fff; } .tag { - max-width: 100%; overflow: hidden; word-break: break-all; white-space: nowrap; text-overflow: ellipsis; + max-width: 100px; + } + } + .textTitle { + display: grid; + grid-template-columns: auto 1fr; + gap: 8px; + & > span:first-child { + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + } + & > span:last-child { + display: inherit; } } @@ -54,11 +60,6 @@ & > div > div { color: $primary; } - - :global .kubed-icon { - color: #00aa72; - fill: #90e0c5; - } } } }