mirror of
https://github.com/ansible/awx.git
synced 2026-05-08 18:07:36 -02:30
Fix job result detail and standard out panel styles
This commit is contained in:
@@ -6,6 +6,7 @@
|
|||||||
border-top-left-radius: 4px;
|
border-top-left-radius: 4px;
|
||||||
border-top-right-radius: 4px;
|
border-top-right-radius: 4px;
|
||||||
border-bottom: none;
|
border-bottom: none;
|
||||||
|
margin-top: 15px;
|
||||||
|
|
||||||
& > div {
|
& > div {
|
||||||
user-select: none;
|
user-select: none;
|
||||||
@@ -123,7 +124,7 @@
|
|||||||
|
|
||||||
&-container {
|
&-container {
|
||||||
font-family: monospace;
|
font-family: monospace;
|
||||||
height: calc(~"100vh - 240px");
|
height: 100%;
|
||||||
overflow-y: scroll;
|
overflow-y: scroll;
|
||||||
font-size: 15px;
|
font-size: 15px;
|
||||||
border: 1px solid @at-gray-b7;
|
border: 1px solid @at-gray-b7;
|
||||||
@@ -143,6 +144,11 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&--fullscreen {
|
||||||
|
grid-column-start: 1;
|
||||||
|
grid-column-end: 3;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.at-mixin-event() {
|
.at-mixin-event() {
|
||||||
@@ -201,12 +207,12 @@
|
|||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Status Bar -----------------------------------------------------------------------------
|
// Status Bar -----------------------------------------------------------------------------
|
||||||
.HostStatusBar {
|
.HostStatusBar {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex: 0 0 auto;
|
flex: 0 0 auto;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
margin-bottom: 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.HostStatusBar-ok,
|
.HostStatusBar-ok,
|
||||||
@@ -282,49 +288,28 @@
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.HostStatusBar-tooltip.top {
|
||||||
|
margin-top: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
// Job Details ---------------------------------------------------------------------------------
|
// Job Details ---------------------------------------------------------------------------------
|
||||||
|
|
||||||
@breakpoint-md: 1200px;
|
@breakpoint-md: 1200px;
|
||||||
|
|
||||||
.JobResults {
|
.JobResults-container {
|
||||||
.OnePlusTwo-container(100%, @breakpoint-md);
|
display: grid;
|
||||||
|
grid-gap: 20px;
|
||||||
|
grid-template-columns: minmax(300px, 1fr) minmax(500px, 2fr);
|
||||||
|
grid-template-rows: minmax(500px, ~"calc(100vh - 140px)");
|
||||||
|
|
||||||
&.fullscreen {
|
.at-Panel {
|
||||||
.JobResults-rightSide {
|
overflow-y: scroll;
|
||||||
max-width: 100%;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.JobResults-leftSide {
|
|
||||||
.OnePlusTwo-left--panel(100%, @breakpoint-md);
|
|
||||||
max-width: 30%;
|
|
||||||
height: ~"calc(100vh - 177px)";
|
|
||||||
|
|
||||||
@media screen and (max-width: @breakpoint-md) {
|
|
||||||
max-width: 100%;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.JobResults-rightSide {
|
|
||||||
.OnePlusTwo-right--panel(100%, @breakpoint-md);
|
|
||||||
height: ~"calc(100vh - 177px)";
|
|
||||||
|
|
||||||
@media (max-width: @breakpoint-md - 1px) {
|
|
||||||
padding-right: 15px;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.JobResults-detailsPanel {
|
.JobResults-detailsPanel {
|
||||||
overflow-y: scroll;
|
display: flex;
|
||||||
}
|
flex-direction: column;
|
||||||
|
|
||||||
.JobResults-stdoutActionButton--active {
|
|
||||||
display: none;
|
|
||||||
visibility: hidden;
|
|
||||||
flex:none;
|
|
||||||
width:0px;
|
|
||||||
padding-right: 0px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.JobResults-panelHeader {
|
.JobResults-panelHeader {
|
||||||
@@ -352,8 +337,8 @@
|
|||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
.JobResults-codeMirrorResultRowLabel{
|
.JobResults-resultRow #cm-variables-container {
|
||||||
font-size: 12px;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.JobResults-resultRowLabel {
|
.JobResults-resultRowLabel {
|
||||||
@@ -416,109 +401,10 @@
|
|||||||
padding-right: 10px;
|
padding-right: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.JobResults-badgeRow {
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
margin-right: 5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.JobResults-badgeTitle{
|
|
||||||
color: @default-interface-txt;
|
|
||||||
font-size: 14px;
|
|
||||||
margin-right: 10px;
|
|
||||||
font-weight: normal;
|
|
||||||
text-transform: uppercase;
|
|
||||||
margin-left: 20px;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (max-width: @breakpoint-md) {
|
|
||||||
.JobResults-detailsPanel {
|
|
||||||
overflow-y: auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
.JobResults-rightSide {
|
|
||||||
height: inherit;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.JobResults-timeBadge {
|
|
||||||
float:right;
|
|
||||||
font-size: 11px;
|
|
||||||
font-weight: normal;
|
|
||||||
padding: 1px 10px;
|
|
||||||
height: 14px;
|
|
||||||
margin: 3px 15px;
|
|
||||||
width: 80px;
|
|
||||||
background-color: @default-bg;
|
|
||||||
border-radius: 5px;
|
|
||||||
color: @default-interface-txt;
|
|
||||||
margin-right: -5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.JobResults-panelRight {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
}
|
|
||||||
|
|
||||||
.JobResults-panelRight .SmartSearch-bar {
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.JobResults-panelRightTitle{
|
|
||||||
flex-wrap: wrap;
|
|
||||||
}
|
|
||||||
|
|
||||||
.JobResults-panelRightTitleText{
|
|
||||||
word-wrap: break-word;
|
|
||||||
word-break: break-all;
|
|
||||||
max-width: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.JobResults-badgeAndActionRow{
|
|
||||||
display:flex;
|
|
||||||
flex: 1 0 auto;
|
|
||||||
justify-content: flex-end;
|
|
||||||
flex-wrap: wrap;
|
|
||||||
max-width: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.StandardOut-panelHeader {
|
.StandardOut-panelHeader {
|
||||||
flex: initial;
|
flex: initial;
|
||||||
}
|
}
|
||||||
|
|
||||||
.StandardOut-panelHeader--jobIsRunning {
|
|
||||||
margin-bottom: 20px;
|
|
||||||
}
|
|
||||||
|
|
||||||
host-status-bar {
|
|
||||||
flex: initial;
|
|
||||||
margin-bottom: 20px;
|
|
||||||
}
|
|
||||||
|
|
||||||
smart-search {
|
|
||||||
flex: initial;
|
|
||||||
}
|
|
||||||
|
|
||||||
job-results-standard-out {
|
|
||||||
flex: 1;
|
|
||||||
flex-basis: auto;
|
|
||||||
height: ~"calc(100% - 800px)";
|
|
||||||
display: flex;
|
|
||||||
border: 1px solid @d7grey;
|
|
||||||
border-radius: 5px;
|
|
||||||
margin-top: 20px;
|
|
||||||
}
|
|
||||||
@media screen and (max-width: @breakpoint-md) {
|
|
||||||
job-results-standard-out {
|
|
||||||
height: auto;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.JobResults-extraVarsHelp {
|
|
||||||
margin-left: 10px;
|
|
||||||
color: @default-icon;
|
|
||||||
}
|
|
||||||
|
|
||||||
.JobResults-seeMoreLess {
|
.JobResults-seeMoreLess {
|
||||||
color: #337AB7;
|
color: #337AB7;
|
||||||
margin: 4px 0px;
|
margin: 4px 0px;
|
||||||
@@ -528,3 +414,10 @@ job-results-standard-out {
|
|||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
font-size: 11px;
|
font-size: 11px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media screen and (max-width: @breakpoint-md) {
|
||||||
|
.JobResults-container {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -40,7 +40,6 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- LEFT PANE DETAILS GROUP -->
|
<!-- LEFT PANE DETAILS GROUP -->
|
||||||
<div>
|
|
||||||
<!-- STATUS DETAIL -->
|
<!-- STATUS DETAIL -->
|
||||||
<div class="JobResults-resultRow">
|
<div class="JobResults-resultRow">
|
||||||
<label class="JobResults-resultRowLabel">{{ vm.status.label }}</label>
|
<label class="JobResults-resultRowLabel">{{ vm.status.label }}</label>
|
||||||
@@ -252,11 +251,12 @@
|
|||||||
|
|
||||||
<!-- EXTRA VARIABLES DETAIL -->
|
<!-- EXTRA VARIABLES DETAIL -->
|
||||||
<at-code-mirror
|
<at-code-mirror
|
||||||
|
class="JobResults-resultRow"
|
||||||
ng-if="vm.extraVars"
|
ng-if="vm.extraVars"
|
||||||
variables="{{ vm.extraVars.value }}"
|
variables="{{ vm.extraVars.value }}"
|
||||||
tooltip="{{ vm.extraVars.tooltip }}"
|
tooltip="{{ vm.extraVars.tooltip }}"
|
||||||
label="{{ vm.extraVars.label}}"
|
label="{{ vm.extraVars.label}}"
|
||||||
label-class="JobResults-codeMirrorResultRowLabel"
|
label-class="JobResults-resultRowLabel"
|
||||||
disabled="{{ vm.extraVars.disabled }}">
|
disabled="{{ vm.extraVars.disabled }}">
|
||||||
</at-code-mirror>
|
</at-code-mirror>
|
||||||
|
|
||||||
@@ -284,4 +284,3 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
|||||||
@@ -1,14 +1,13 @@
|
|||||||
<div class="container-fluid">
|
|
||||||
<div ui-view></div>
|
<div ui-view></div>
|
||||||
<div class="col-md-4" ng-show="!vm.fullscreen.isFullscreen">
|
<div class="JobResults-container">
|
||||||
<at-panel>
|
<at-panel ng-show="!vm.fullscreen.isFullscreen">
|
||||||
<at-job-details resource="vm.resource"></at-job-details>
|
<at-job-details resource="vm.resource"></at-job-details>
|
||||||
</at-panel>
|
</at-panel>
|
||||||
</div>
|
|
||||||
|
|
||||||
<div ng-class="vm.fullscreen.isFullscreen ? 'col-md-12' : 'col-md-8'">
|
<at-panel class="at-Stdout" ng-class="{'at-Stdout--fullscreen': vm.fullscreen.isFullscreen}">
|
||||||
<at-panel class="at-Stdout">
|
<div class="at-Panel-headingTitle">
|
||||||
<div class="at-Panel-headingTitle">{{ vm.title }}</div>
|
{{ vm.title }}
|
||||||
|
</div>
|
||||||
<at-job-stats
|
<at-job-stats
|
||||||
resource="vm.resource"
|
resource="vm.resource"
|
||||||
fullscreen="vm.fullscreen">
|
fullscreen="vm.fullscreen">
|
||||||
@@ -61,4 +60,3 @@
|
|||||||
</div>
|
</div>
|
||||||
</at-panel>
|
</at-panel>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
|||||||
@@ -42,40 +42,47 @@
|
|||||||
ng-show="!vm.running"
|
ng-show="!vm.running"
|
||||||
data-placement="top"
|
data-placement="top"
|
||||||
aw-tool-tip="{{ vm.tooltips.ok }}"
|
aw-tool-tip="{{ vm.tooltips.ok }}"
|
||||||
data-tip-watch="vm.tooltips.ok">
|
data-tip-watch="vm.tooltips.ok"
|
||||||
|
tooltip-outer-class="HostStatusBar-tooltip">
|
||||||
</div>
|
</div>
|
||||||
<div class="HostStatusBar-skipped"
|
<div class="HostStatusBar-skipped"
|
||||||
ng-show="!vm.running"
|
ng-show="!vm.running"
|
||||||
data-placement="top"
|
data-placement="top"
|
||||||
aw-tool-tip="{{ vm.tooltips.skipped }}"
|
aw-tool-tip="{{ vm.tooltips.skipped }}"
|
||||||
data-tip-watch="vm.tooltips.skipped">
|
data-tip-watch="vm.tooltips.skipped"
|
||||||
|
tooltip-outer-class="HostStatusBar-tooltip">
|
||||||
</div>
|
</div>
|
||||||
<div class="HostStatusBar-changed"
|
<div class="HostStatusBar-changed"
|
||||||
ng-show="!vm.running"
|
ng-show="!vm.running"
|
||||||
data-placement="top"
|
data-placement="top"
|
||||||
aw-tool-tip="{{ vm.tooltips.changed }}"
|
aw-tool-tip="{{ vm.tooltips.changed }}"
|
||||||
data-tip-watch="vm.tooltips.changed">
|
data-tip-watch="vm.tooltips.changed"
|
||||||
|
tooltip-outer-class="HostStatusBar-tooltip">
|
||||||
</div>
|
</div>
|
||||||
<div class="HostStatusBar-failures"
|
<div class="HostStatusBar-failures"
|
||||||
ng-show="!vm.running"
|
ng-show="!vm.running"
|
||||||
data-placement="top"
|
data-placement="top"
|
||||||
aw-tool-tip="{{ vm.tooltips.failures }}"
|
aw-tool-tip="{{ vm.tooltips.failures }}"
|
||||||
data-tip-watch="vm.tooltips.failures">
|
data-tip-watch="vm.tooltips.failures"
|
||||||
|
tooltip-outer-class="HostStatusBar-tooltip">
|
||||||
</div>
|
</div>
|
||||||
<div class="HostStatusBar-dark"
|
<div class="HostStatusBar-dark"
|
||||||
ng-show="!vm.running"
|
ng-show="!vm.running"
|
||||||
data-placement="top"
|
data-placement="top"
|
||||||
aw-tool-tip="{{ vm.tooltips.dark }}"
|
aw-tool-tip="{{ vm.tooltips.dark }}"
|
||||||
data-tip-watch="vm.tooltips.dark">
|
data-tip-watch="vm.tooltips.dark"
|
||||||
|
tooltip-outer-class="HostStatusBar-tooltip">
|
||||||
</div>
|
</div>
|
||||||
<div class="HostStatusBar-noData"
|
<div class="HostStatusBar-noData"
|
||||||
ng-show="vm.running"
|
ng-show="vm.running"
|
||||||
data-placement="top"
|
data-placement="top"
|
||||||
aw-tool-tip="{{:: vm.tooltips.running }}">
|
aw-tool-tip="{{:: vm.tooltips.running }}"
|
||||||
|
tooltip-outer-class="HostStatusBar-tooltip">
|
||||||
</div>
|
</div>
|
||||||
<div class="HostStatusBar-noData"
|
<div class="HostStatusBar-noData"
|
||||||
ng-show="!vm.running && !vm.statsAreAvailable"
|
ng-show="!vm.running && !vm.statsAreAvailable"
|
||||||
data-placement="top"
|
data-placement="top"
|
||||||
aw-tool-tip="{{:: vm.tooltips.unavailable }}">
|
aw-tool-tip="{{:: vm.tooltips.unavailable }}"
|
||||||
|
tooltip-outer-class="HostStatusBar-tooltip">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user