[aur-dev] [PATCH] Avoid overflow in updates table

Lukas Fleischer archlinux at cryptocrack.de
Thu May 22 10:02:34 EDT 2014


Fixes FS#40206.

Signed-off-by: Lukas Fleischer <archlinux at cryptocrack.de>
---
 web/html/css/aur.css                 | 19 +++++++++++++++++++
 web/template/stats/updates_table.php |  2 +-
 2 files changed, 20 insertions(+), 1 deletion(-)

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>
-- 
1.9.3



More information about the aur-dev mailing list