diff --git a/src/playbooks/PlaybookSummary.js b/src/playbooks/PlaybookSummary.js index 1ba86da..75a78a0 100644 --- a/src/playbooks/PlaybookSummary.js +++ b/src/playbooks/PlaybookSummary.js @@ -79,30 +79,41 @@ const PlaybookWrapper = styled.div` } `; -const StatusAndName = styled.div` +const PlaybookContent = styled.div` display: flex; - align-items: center; - width: 100%; - margin-bottom: 1em; - @media (min-width: 587px) { - width: 25%; - margin-bottom: 0; + flex-direction: column; + @media (min-width: 800px) { + flex-direction: row; + justify-content: space-between; + align-items: center; } `; -const PlaybookInfos = styled.div` - display: grid; - grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); +const StatusAndName = styled.div` + display: flex; align-items: center; - width: 100%; - @media (min-width: 587px) { - width: 50%; + min-width: 300px; +`; + +const PlaybookInfos = styled.div` + margin: 2em 0; + display: flex; + flex-direction: column; + flex-wrap: wrap; + @media (min-width: 800px) { + flex-direction: row; + flex-grow: 1; + margin: 0; + align-items: center; } `; const PlaybookInfo = styled.div` - width: 140px; - @media (min-width: 587px) { + flex-grow: 1; + width: 100px; + max-width: 100px; + + @media (min-width: 800px) { text-align: center; } `; @@ -110,10 +121,9 @@ const PlaybookInfo = styled.div` const Duration = styled.div` display: flex; align-items: center; - width: 100%; - margin-top: 1em; - @media (min-width: 587px) { - width: 25%; + min-width: 100px; + + @media (min-width: 800px) { justify-content: flex-end; margin-top: 0; } @@ -130,40 +140,37 @@ export default class Playbook extends Component { >
-
+ -

+

{playbook.path.split("/").slice(-1)[0]}

- - {Object.keys(playbook.arguments).length} arguments - - + {playbook.hosts.length} Hosts - + {playbook.files.length} Files - + {Object.keys(playbook.tasks).length} tasks - + {Object.keys(playbook.plays).length} plays - + {Object.keys(playbook.records).length} records - + {Math.round(playbook.duration)} sec -
+