[aur-dev] [PATCH] Implement word-wrap for package statistics
Word-wrap labels in the package statistics box, just as we wrap package names in the "Recent Updates" box. Addresses FS#32160. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de> --- web/html/css/aur.css | 4 ++++ web/template/stats/general_stats_table.php | 16 ++++++++-------- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/web/html/css/aur.css b/web/html/css/aur.css index dada258..bae8e21 100644 --- a/web/html/css/aur.css +++ b/web/html/css/aur.css @@ -10,3 +10,7 @@ #pkg-updates td.pkg-new { padding: 0 .5em; } + +#pkg-stats td.stat-desc { + white-space: normal; +} diff --git a/web/template/stats/general_stats_table.php b/web/template/stats/general_stats_table.php index 6a92c3b..5b59832 100644 --- a/web/template/stats/general_stats_table.php +++ b/web/template/stats/general_stats_table.php @@ -2,35 +2,35 @@ <table> <tr> - <td><?= __("Packages"); ?></td> + <td class="stat-desc"><?= __("Packages"); ?></td> <td><?= $unsupported_count; ?></td> </tr> <tr> - <td><?= __("Orphan Packages"); ?></td> + <td class="stat-desc"><?= __("Orphan Packages"); ?></td> <td><?= $orphan_count; ?></td> </tr> <tr> - <td><?= __("Packages added in the past 7 days"); ?></td> + <td class="stat-desc"><?= __("Packages added in the past 7 days"); ?></td> <td><?= $add_count; ?></td> </tr> <tr> - <td><?= __("Packages updated in the past 7 days"); ?></td> + <td class="stat-desc"><?= __("Packages updated in the past 7 days"); ?></td> <td><?= $update_count; ?></td> </tr> <tr> - <td><?= __("Packages updated in the past year"); ?></td> + <td class="stat-desc"><?= __("Packages updated in the past year"); ?></td> <td><?= $update_year_count; ?></td> </tr> <tr> - <td><?= __("Packages never updated"); ?></td> + <td class="stat-desc"><?= __("Packages never updated"); ?></td> <td><?= $never_update_count; ?></td> </tr> <tr> - <td><?= __("Registered Users"); ?></td> + <td class="stat-desc"><?= __("Registered Users"); ?></td> <td><?= $user_count; ?></td> </tr> <tr> - <td><?= __("Trusted Users"); ?></td> + <td class="stat-desc"><?= __("Trusted Users"); ?></td> <td><?= $tu_count; ?></td> </tr> </table> -- 1.8.0
participants (1)
-
Lukas Fleischer