mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2025-01-23 00:21:43 +01:00
Improved height limiting of tables
This commit is contained in:
parent
d3b7ffe499
commit
59309090a9
@ -67,7 +67,7 @@ public class TableContainer {
|
||||
return getTableHeader() +
|
||||
parseHeader() +
|
||||
parseBody() +
|
||||
"</table>" + (jqueryDatatable != null ? "</div>" : "");
|
||||
"</table></div>";
|
||||
}
|
||||
|
||||
public final String parseBody() {
|
||||
|
@ -80,7 +80,7 @@ public enum Html {
|
||||
|
||||
TABLE_END("</tbody></table>"),
|
||||
TABLE("<table class=\"table table-striped\">"),
|
||||
TABLE_SCROLL("<table class=\"table table-striped scrollbar\">"),
|
||||
TABLE_SCROLL("<div class=\"scrollbar\"><table class=\"table table-striped\">"),
|
||||
TABLE_JQUERY("<table class=\"table table-bordered table-striped table-hover ${0} dataTable\">"),
|
||||
TABLE_COLORED("<table class=\"bg-${0} table table-striped\">"),
|
||||
TABLE_HEAD("<thead>${0}</thead>"),
|
||||
|
@ -47,6 +47,12 @@
|
||||
}
|
||||
}
|
||||
|
||||
div.scrollbar {
|
||||
overflow: hidden;
|
||||
overflow-y: auto;
|
||||
max-height: 60vh;
|
||||
}
|
||||
|
||||
.clickable {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
@ -356,15 +356,19 @@
|
||||
class="far fa-fw fa-hand-pointer"></i>
|
||||
<small>Click to expand</small></span></h6>
|
||||
</div>
|
||||
<table class="table mb-0" id="tableAccordion">
|
||||
<thead>
|
||||
<th><i class="fa fa-fw fa-server"></i> Server</th>
|
||||
<th><i class="far fa-fw fa-clock"></i> Session Started</th>
|
||||
<th><i class="far fa-fw fa-clock"></i> Length</th>
|
||||
<th><i class="far fa-fw fa-map"></i> Most played World</th>
|
||||
</thead>
|
||||
<tbody></tbody>
|
||||
</table>
|
||||
<div class="scrollbar">
|
||||
<table class="table mb-0" id="tableAccordion">
|
||||
<thead>
|
||||
<tr>
|
||||
<th><i class="fa fa-fw fa-server"></i> Server</th>
|
||||
<th><i class="far fa-fw fa-clock"></i> Session Started</th>
|
||||
<th><i class="far fa-fw fa-clock"></i> Length</th>
|
||||
<th><i class="far fa-fw fa-map"></i> Most played World</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody></tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div> <!-- End of Most recent sessions -->
|
||||
<div class="col-lg-4 mb-4 col-sm-12">
|
||||
@ -540,15 +544,19 @@
|
||||
Servers<span class="float-right"><i class="far fa-fw fa-hand-pointer"></i>
|
||||
<small>Click to expand</small></span></h6>
|
||||
</div>
|
||||
<table class="table mb-0" id="tableServerAccordion">
|
||||
<thead>
|
||||
<th><i class="fa fa-fw fa-server"></i> Server</th>
|
||||
<th><i class="far fa-fw fa-clock"></i> Playtime</th>
|
||||
<th><i class="far fa-fw fa-calendar-plus"></i> Registered</th>
|
||||
<th><i class="far fa-fw fa-calendar-check"></i> Last Seen</th>
|
||||
</thead>
|
||||
<tbody></tbody>
|
||||
</table>
|
||||
<div class="scrollbar">
|
||||
<table class="table mb-0" id="tableServerAccordion">
|
||||
<thead>
|
||||
<tr>
|
||||
<th><i class="fa fa-fw fa-server"></i> Server</th>
|
||||
<th><i class="far fa-fw fa-clock"></i> Playtime</th>
|
||||
<th><i class="far fa-fw fa-calendar-plus"></i> Registered</th>
|
||||
<th><i class="far fa-fw fa-calendar-check"></i> Last Seen</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody></tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div> <!-- End of Most recent sessions -->
|
||||
<div class="col-lg-4 mb-4 col-sm-12">
|
||||
|
@ -535,18 +535,20 @@
|
||||
class="far fa-fw fa-hand-pointer"></i>
|
||||
<small>Click to expand</small></span></h6>
|
||||
</div>
|
||||
<table class="table mb-0" id="tableAccordion">
|
||||
<thead>
|
||||
<tr>
|
||||
<th><i class="fa fa-fw fa-user"></i> Player</th>
|
||||
<th><i class="far fa-fw fa-clock"></i> Session Started</th>
|
||||
<th><i class="far fa-fw fa-clock"></i> Length</th>
|
||||
<th><i class="far fa-fw fa-map"></i> Most played World</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="scrollbar" style="height: 80vh">
|
||||
<table class="table mb-0" id="tableAccordion">
|
||||
<thead>
|
||||
<tr>
|
||||
<th><i class="fa fa-fw fa-user"></i> Player</th>
|
||||
<th><i class="far fa-fw fa-clock"></i> Session Started</th>
|
||||
<th><i class="far fa-fw fa-clock"></i> Length</th>
|
||||
<th><i class="far fa-fw fa-map"></i> Most played World</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div> <!-- End of Most recent sessions -->
|
||||
<div class="col-lg-4 mb-4 col-sm-12">
|
||||
@ -699,8 +701,10 @@
|
||||
class="fas fa-fw fa-crosshairs col-red"></i>
|
||||
Recent Kills</h6>
|
||||
</div>
|
||||
<table class="table" id="playerKillTable">
|
||||
</table>
|
||||
<div class="scrollbar">
|
||||
<table class="table" id="playerKillTable">
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -940,24 +944,26 @@
|
||||
class="fas fa-fw fa-wifi col-green"></i>
|
||||
Connection Information</h6>
|
||||
</div>
|
||||
<table class="table mb-0">
|
||||
<thead class="bg-amber">
|
||||
<tr>
|
||||
<th><i class=" fa fa-fw fa-globe"></i> Country</th>
|
||||
<th><i class=" fa fa-fw fa-signal"></i> Average Ping</th>
|
||||
<th><i class=" fa fa-fw fa-signal"></i> Worst Ping</th>
|
||||
<th><i class=" fa fa-fw fa-signal"></i> Best Ping</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>Local Machine</td>
|
||||
<td>-</td>
|
||||
<td>-</td>
|
||||
<td>-</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="scrollbar">
|
||||
<table class="table mb-0">
|
||||
<thead class="bg-amber">
|
||||
<tr>
|
||||
<th><i class=" fa fa-fw fa-globe"></i> Country</th>
|
||||
<th><i class=" fa fa-fw fa-signal"></i> Average Ping</th>
|
||||
<th><i class=" fa fa-fw fa-signal"></i> Worst Ping</th>
|
||||
<th><i class=" fa fa-fw fa-signal"></i> Best Ping</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>Local Machine</td>
|
||||
<td>-</td>
|
||||
<td>-</td>
|
||||
<td>-</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user