Pārlūkot izejas kodu

Limit height of location and tester tables.

Alan Lam 8 gadi atpakaļ
vecāks
revīzija
61e829ba5d
3 mainītis faili ar 49 papildinājumiem un 35 dzēšanām
  1. 0 0
      public/css/bootstrap.min.css
  2. 10 0
      scss/_main.scss
  3. 39 35
      views/project.php

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 0 - 0
public/css/bootstrap.min.css


+ 10 - 0
scss/_main.scss

@@ -81,6 +81,16 @@ ol.breadcrumb {
 	}
 }
 
+.limit-height-1 {
+	max-height: 256px;
+	overflow: auto;
+}
+
+.limit-height-2 {
+	max-height: 512px;
+	overflow: auto;
+}
+
 input[required], select[required], textarea[required] {
 	background-image: url(/img/bg_required.png);
 	background-position: center right;

+ 39 - 35
views/project.php

@@ -129,23 +129,25 @@ var projectID = <?=$project->id?>;
 				<input class="form-control" type="text" placeholder="Enter name, address, ID or internal ID" data-filter-target="#tests-tbody" />
 			</div>
 
-			<table class="table table-hover table-sm">
-				<thead>
-					<tr>
-						<th>Name</th>
-						<th>Status</th>
-						<th>Result</th>
-						<th></th>
-					</tr>
-				</thead>
-				<tbody id="tests-tbody">
-					<tr>
-						<td colspan="3" class="text-center p-3">
-							No tests to show
-						</td>
-					</tr>
-				</tbody>
-			</table>
+			<div class="limit-height-2">
+				<table class="table table-hover table-sm">
+					<thead>
+						<tr>
+							<th>Name</th>
+							<th>Status</th>
+							<th>Result</th>
+							<th></th>
+						</tr>
+					</thead>
+					<tbody id="tests-tbody">
+						<tr>
+							<td colspan="3" class="text-center p-3">
+								No tests to show
+							</td>
+						</tr>
+					</tbody>
+				</table>
+			</div>
 		</div>
 		<div class="col-lg-6 mb-3">
 
@@ -160,24 +162,26 @@ var projectID = <?=$project->id?>;
 				<input class="form-control" type="text" placeholder="Enter name or ID" data-filter-target="#testers-tbody" />
 			</div>
 
-			<table class="table table-hover table-sm">
-				<thead>
-					<tr>
-						<th>Name / Distance</th>
-						<th class="text-right">Age</th>
-						<th class="text-right">Score</th>
-						<th class="text-right">Level / Phone</th>
-						<th></th>
-					</tr>
-				</thead>
-				<tbody id="testers-tbody">
-					<tr>
-						<td colspan="5" class="text-center p-3">
-							No testers to show
-						</td>
-					</tr>
-				</tbody>
-			</table>
+			<div class="limit-height-2">
+				<table class="table table-hover table-sm">
+					<thead>
+						<tr>
+							<th>Name / Distance</th>
+							<th class="text-right">Age</th>
+							<th class="text-right">Score</th>
+							<th class="text-right">Level / Phone</th>
+							<th></th>
+						</tr>
+					</thead>
+					<tbody id="testers-tbody">
+						<tr>
+							<td colspan="5" class="text-center p-3">
+								No testers to show
+							</td>
+						</tr>
+					</tbody>
+				</table>
+			</div>
 		</div>
 	</div>
 </div>

Daži faili netika attēloti, jo izmaiņu fails ir pārāk liels