Prevent tables overflowing

pull/94/head
Pavel Djundik 9 years ago
parent ef0af834c6
commit caf5296b5b

@ -47,14 +47,27 @@
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
<style type="text/css"> <style type="text/css">
.table { .table {
table-layout: fixed;
border-top-color: #428BCA; border-top-color: #428BCA;
} }
.table td {
overflow-x: auto;
}
.table thead th { .table thead th {
background-color: #428BCA; background-color: #428BCA;
border-color: #428BCA !important; border-color: #428BCA !important;
color: #FFF; color: #FFF;
} }
.info-column {
width: 120px;
}
.frags-column {
width: 80px;
}
</style> </style>
</head> </head>
@ -86,7 +99,7 @@
<table class="table table-bordered table-striped"> <table class="table table-bordered table-striped">
<thead> <thead>
<tr> <tr>
<th>Server Info</th> <th class="info-column">Server Info</th>
<th><span class="label label-<?php echo $Timer > 1.0 ? 'danger' : 'success'; ?>"><?php echo $Timer; ?>s</span></th> <th><span class="label label-<?php echo $Timer > 1.0 ? 'danger' : 'success'; ?>"><?php echo $Timer; ?>s</span></th>
</tr> </tr>
</thead> </thead>
@ -133,8 +146,8 @@
<thead> <thead>
<tr> <tr>
<th>Player</th> <th>Player</th>
<th>Frags</th> <th class="frags-column">Frags</th>
<th>Time</th> <th class="frags-column">Time</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>

Loading…
Cancel
Save