Extend standard out line border to full length of container

This commit is contained in:
Marliana Lara 2018-06-20 13:49:41 -04:00
parent d1bc9758db
commit 2824e750cb
No known key found for this signature in database
GPG Key ID: 38C73B40DFA809EE
3 changed files with 42 additions and 29 deletions

View File

@ -74,23 +74,34 @@
color: @at-blue;
}
&-row {
display: flex;
&:hover div {
background-color: white;
}
}
&-toggle {
color: @at-gray-848992;
background-color: @at-gray-eb;
color: @at-gray-848992;
display: flex;
flex: 0 0 30px;
font-size: 18px;
justify-content: center;
line-height: 12px;
& > i {
cursor: pointer;
}
padding: 0 10px 0 10px;
user-select: none;
}
&-line {
color: @at-gray-161b1f;
background-color: @at-gray-eb;
flex: 0 0 45px;
text-align: right;
vertical-align: top;
padding-right: 5px;
@ -100,6 +111,7 @@
&-event {
.at-mixin-event();
flex: 1;
}
&-event--host {
@ -123,6 +135,8 @@
}
&-container {
display: flex;
flex-direction: column;
font-family: monospace;
height: 100%;
overflow-y: scroll;
@ -136,15 +150,16 @@
border-bottom-right-radius: 4px;
border-bottom-left-radius: 4px;
max-height: ~"calc(100vh - 350px)";
white-space: nowrap;
}
& > table {
table-layout: fixed;
&-borderHeader {
.at-mixin-stdoutBorder();
height: 10px;
}
tr:hover > td {
background: white;
}
}
&-borderFooter {
.at-mixin-stdoutBorder();
flex: 1;
}
&--fullscreen {
@ -157,7 +172,12 @@
padding: 0 10px;
word-wrap: break-word;
white-space: pre-wrap;
}
.at-mixin-stdoutBorder() {
background-color: @at-gray-eb;
border-right: 1px solid @at-gray-b7;
width: 75px;
}
// Search ---------------------------------------------------------------------------------

View File

@ -39,18 +39,11 @@
<div class="at-u-clear"></div>
</div>
<pre class="at-Stdout-container">
<table>
<thead>
<tr>
<th class="at-Stdout-toggle">&nbsp;</th>
<th class="at-Stdout-line"></th>
<th class="at-Stdout-event"></th>
</tr>
</thead>
<tbody id="atStdoutResultTable"></tbody>
</table>
</pre>
<div class="at-Stdout-container">
<div class="at-Stdout-borderHeader"></div>
<div id="atStdoutResultTable"></div>
<div class="at-Stdout-borderFooter"></div>
</div>
<div ng-show="vm.menu.showBackToTop" class="at-Stdout-menuBottom">
<div class="at-Stdout-menuIconGroup" ng-click="vm.menu.home()">

View File

@ -198,11 +198,11 @@ function JobRenderService ($q, $sce, $window) {
if (current) {
if (this.createToggles && current.isParent && current.line === ln) {
id = current.uuid;
tdToggle = `<td class="at-Stdout-toggle" ng-click="vm.toggleLineExpand('${id}')"><i class="fa fa-angle-down can-toggle"></i></td>`;
tdToggle = `<div class="at-Stdout-toggle" ng-click="vm.toggleLineExpand('${id}')"><i class="fa fa-angle-down can-toggle"></i></div>`;
}
if (current.isHost) {
tdEvent = `<td class="at-Stdout-event--host" ng-click="vm.showHostDetails('${current.id}', '${current.uuid}')">${content}</td>`;
tdEvent = `<div class="at-Stdout-event--host" ng-click="vm.showHostDetails('${current.id}', '${current.uuid}')">${content}</div>`;
}
if (current.time && current.line === ln) {
@ -215,11 +215,11 @@ function JobRenderService ($q, $sce, $window) {
}
if (!tdEvent) {
tdEvent = `<td class="at-Stdout-event">${content}</td>`;
tdEvent = `<div class="at-Stdout-event">${content}</div>`;
}
if (!tdToggle) {
tdToggle = '<td class="at-Stdout-toggle"></td>';
tdToggle = '<div class="at-Stdout-toggle"></div>';
}
if (!ln) {
@ -227,12 +227,12 @@ function JobRenderService ($q, $sce, $window) {
}
return `
<tr id="${id}" class="${classList}">
<div id="${id}" class="at-Stdout-row ${classList}">
${tdToggle}
<td class="at-Stdout-line">${ln}</td>
<div class="at-Stdout-line">${ln}</div>
${tdEvent}
<td class="at-Stdout-time">${timestamp}</td>
</tr>`;
<div class="at-Stdout-time">${timestamp}</div>
</div>`;
};
this.getTimestamp = created => {