Skip to content
This repository was archived by the owner on Apr 16, 2024. It is now read-only.

Commit 5d33af6

Browse files
committed
fix logs table grid slyting
1 parent 5c181cf commit 5d33af6

File tree

2 files changed

+44
-18
lines changed

2 files changed

+44
-18
lines changed

resources/assets/css/stylesheet.css

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
#console {
2+
background-color: rgb(252, 252, 252);
3+
}
4+
15
#lucid-add-button {
26
position: absolute;
37
right: 2%;
@@ -24,9 +28,19 @@
2428
min-width: 210px;
2529
}
2630

31+
#lucid-logs .mdl-data-table {
32+
table-layout:fixed;
33+
}
34+
35+
#lucid-logs td {
36+
white-space: nowrap;
37+
overflow: hidden;
38+
text-overflow: ellipsis;
39+
-o-text-overflow: ellipsis;
40+
}
41+
2742
.lucid-logs-stack {
2843
text-align: left !important;
29-
max-width: 100px;
3044
}
3145

3246
/* invert the colours */

resources/views/logs.blade.php

Lines changed: 29 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
@section('content')
44

55
<div class="page-content">
6-
<div class="mdl-grid">
6+
<div class="mdl-grid" id="lucid-logs">
77
<div class="mdl-layout-spacer"></div>
8-
<div class="dl-cell mdl-cell--11-col">
9-
<table class="mdl-data-table mdl-js-data-table mdl-shadow--2dp full-width" style="word-wrap: break-word; max-width: 200px;">
10-
<thead>
8+
<div class="dl-cell mdl-cell--10-col">
9+
<table class="mdl-data-table mdl-js-data-table mdl-shadow--2dp full-width">
10+
{{-- <thead>
1111
<tr>
12-
<th class="mdl-data-table__cell--non-numeric">Level</th>
13-
<th colspan=2 class="mdl-data-table__cell--non-numeric full-width">
12+
<th class="mdl-data-table__cell--non-numeric" style="width: 7%;">Level</th>
13+
<th class="mdl-data-table__cell--non-numeric" style="width: 60%;">
1414
<button id="lucid-logs-filter" class="mdl-button mdl-js-button mdl-button--icon">
1515
<i class="material-icons">@{{levelIcon}}</i>
1616
</button>
@@ -22,15 +22,30 @@
2222
<li class="mdl-menu__item" @click="chooseFilterLevel('warning')">Warnings</li>
2323
<li class="mdl-menu__item" @click="chooseFilterLevel('info')">Info</li>
2424
</ul>
25-
2625
</th>
26+
<th class="mdl-data-table__cell--non-numeric" style="width: 17%;"></th>
27+
<th class="mdl-data-table__cell--non-numeric"></th>
28+
<th class="mdl-data-table__cell--non-numeric"></th>
2729
</tr>
28-
</thead>
30+
</thead> --}}
2931
<thead>
3032
<tr>
31-
<th class="mdl-data-table__cell--non-numeric">Type</th>
32-
<th class="mdl-data-table__cell--non-numeric">Error</th>
33-
<th class="mdl-data-table__cell--non-numeric">Time</th>
33+
<th class="mdl-data-table__cell--non-numeric" style="width: 10%;">
34+
Level
35+
<button id="lucid-logs-filter" class="mdl-button mdl-js-button mdl-button--icon">
36+
<i class="material-icons">@{{levelIcon}}</i>
37+
</button>
38+
39+
<ul class="mdl-menu mdl-menu--bottom-left mdl-js-menu mdl-js-ripple-effect"
40+
for="lucid-logs-filter">
41+
<li class="mdl-menu__item mdl-menu__item--full-bleed-divider" @click="chooseFilterLevel('all')">All</li>
42+
<li class="mdl-menu__item" @click="chooseFilterLevel('error')">Errors</li>
43+
<li class="mdl-menu__item" @click="chooseFilterLevel('warning')">Warnings</li>
44+
<li class="mdl-menu__item" @click="chooseFilterLevel('info')">Info</li>
45+
</ul>
46+
</th>
47+
<th class="mdl-data-table__cell--non-numeric" style="width: 60%;">Error</th>
48+
<th class="mdl-data-table__cell--non-numeric" style="width: 20%;">Time</th>
3449
<th class="mdl-data-table__cell--non-numeric">Stack</th>
3550
<th class="mdl-data-table__cell--non-numeric">Read</th>
3651
</tr>
@@ -41,8 +56,8 @@
4156
<td class="mdl-data-table__cell--non-numeric">
4257
<i :class="['material-icons', 'text-colour-'+entry.level]">@{{entry.level}}</i>
4358
</td>
44-
<td class="mdl-data-table__cell--non-numeric lucid-log-slack">
45-
<b>@{{entry.header | header | trim | truncate 155}}</b>
59+
<td class="mdl-data-table__cell--non-numeric">
60+
<b>@{{entry.header | header | trim }}</b>
4661
</td>
4762
<td class="mdl-data-table__cell--non-numeric">@{{entry.date}}</td>
4863
<td class="mdl-data-table__cell--non-numeric">
@@ -54,7 +69,7 @@
5469
</tr>
5570
<tr v-if="entry.showStack">
5671
<td colspan="5" class="lucid-logs-stack">
57-
<pre>@{{entry.header}}</pre>
72+
<b><pre style="line-height: 70px;">@{{entry.header}}</pre></b>
5873
<hr>
5974
<pre>@{{entry.stack}}</pre>
6075
</td>
@@ -64,9 +79,6 @@
6479
</table>
6580
</div>
6681
<div class="mdl-layout-spacer"></div>
67-
<div class="mdl-layout-spacer"></div>
68-
<div class="mdl-layout-spacer"></div>
69-
<div class="mdl-layout-spacer"></div>
7082
</div>
7183
</div>
7284
@stop

0 commit comments

Comments
 (0)