Skip to content

Commit f3a621d

Browse files
committed
Fix comment table width issue
1 parent 38bd49e commit f3a621d

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

src/static/a/comments.css

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
* BNETDocs (C) 2016 Creative Commons CC-BY-NC-SA 4.0 License
33
*/
44

5+
table.comments {
6+
table-layout: fixed;
7+
}
58
table.comments td {
69
vertical-align: top;
710
}
@@ -12,9 +15,10 @@ table.comments td p:last-of-type {
1215
margin-bottom: 0px;
1316
}
1417
table.comments td:first-child {
15-
padding-top: 8px;
16-
min-width: 180px;
1718
max-width: 180px;
19+
min-width: 180px;
20+
padding-top: 8px;
21+
width: 180px;
1822
}
1923
table.comments td:last-child {
2024
font-size: 10pt;
@@ -35,6 +39,3 @@ table.comments blockquote:first-child {
3539
table.comments blockquote:last-child {
3640
margin-bottom: 0px;
3741
}
38-
table.comments code {
39-
width: 538px;
40-
}

src/static/a/packet.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
* BNETDocs (C) 2016 Creative Commons CC-BY-NC-SA 4.0 License
33
*/
44

5+
table.info {
6+
table-layout: fixed;
7+
}
58
table.info code {
69
margin: -0.9em 0px;
710
}

src/templates/Packet/View.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ require("./header.inc.phtml");
5858
echo "</ul>";
5959
}
6060
?></td></tr>
61-
<tr><th>Format:</th><td><pre><code><?php echo $object->getPacketFormat(); ?></code></pre></td></tr>
61+
<tr><th>Format:</th><td><p><pre><code><?php echo $object->getPacketFormat(); ?></code></pre></p></td></tr>
6262
</tbody></table>
6363
</section>
6464
<header>Remarks</header>

0 commit comments

Comments
 (0)