Skip to content

Commit 290d31b

Browse files
committed
Fix overflow on really tiny mobile screens
1 parent 3620d82 commit 290d31b

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

src/static/a/servers.css

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,19 @@
66
table.servers {
77
font-size: 12pt;
88
}
9+
table.servers th.address,
10+
table.servers th.details {
11+
display: none;
12+
}
13+
table.servers th.label {
14+
border-right: 0px;
15+
}
16+
table.servers td.label,
17+
table.servers td.address,
18+
table.servers td.details {
19+
border-right: 0px;
20+
display: block;
21+
}
922
}
1023
table.servers th.status {
1124
width: 50px;

src/templates/Servers.phtml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ require("./header.inc.phtml");
3333
<th class="status">Status</th>
3434
<th class="label">Label</th>
3535
<th class="address">Address</th>
36-
<th></th>
36+
<th class="details"></th>
3737
</tr>
3838
</thead>
3939
<tbody>
@@ -55,7 +55,7 @@ require("./header.inc.phtml");
5555
<td class="status center <?php echo $status_subclass; ?>"><?php echo $status; ?></td>
5656
<td class="label"><?php echo ($server->getLabel() != $server->getAddress() && !is_null($server->getLabel()) ? $server->getLabel() : "&nbsp;"); ?></td>
5757
<td class="address" onclick="bnetdocs.fSelectText(this);"><?php echo $server->getAddress(); ?>:<?php echo $server->getPort(); ?></td>
58-
<td class="center"><a href="<?php echo Common::relativeUrlToAbsolute("/server/" . $server->getId()); ?>">View Details</a></td>
58+
<td class="details center"><a href="<?php echo Common::relativeUrlToAbsolute("/server/" . $server->getId()); ?>">View Details</a></td>
5959
</tr>
6060
<?php } ?>
6161
<?php } ?>

0 commit comments

Comments
 (0)