summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Fleischer <archlinux@cryptocrack.de>2014-05-22 16:01:16 +0200
committerLukas Fleischer <archlinux@cryptocrack.de>2014-05-22 16:01:16 +0200
commitea25f982dcdfa32fe03d76a6de757e74ab7fd244 (patch)
tree1acb5aed7646b6fcf6c5342b06f8cfa9ba240b70
parent839bff3761cc9eb27010c6fe1e37cf4edcbf3f01 (diff)
downloadaurweb-ea25f982dcdfa32fe03d76a6de757e74ab7fd244.tar.xz
Avoid overflow in updates table
Fixes FS#40206. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
-rw-r--r--web/html/css/aur.css19
-rw-r--r--web/template/stats/updates_table.php2
2 files changed, 20 insertions, 1 deletions
diff --git a/web/html/css/aur.css b/web/html/css/aur.css
index bed39e8..78fd4ce 100644
--- a/web/html/css/aur.css
+++ b/web/html/css/aur.css
@@ -42,3 +42,22 @@
list-style: none;
padding: 0;
}
+
+#pkg-updates table {
+ table-layout: fixed;
+ width:100%;
+}
+
+#pkg-updates td.pkg-name {
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis;
+}
+
+#pkg-updates td.pkg-new {
+ width: 16px;
+}
+
+#pkg-updates td.pkg-date {
+ text-align:right;
+}
diff --git a/web/template/stats/updates_table.php b/web/template/stats/updates_table.php
index 11f0a00..83e2103 100644
--- a/web/template/stats/updates_table.php
+++ b/web/template/stats/updates_table.php
@@ -14,7 +14,7 @@
<img src="images/new.png" alt="New!" />
<?php endif; ?>
</td>
- <td>
+ <td class="pkg-date">
<span><?= gmdate("Y-m-d H:i", intval($row["ModifiedTS"])); ?></span>
</td>
</tr>