[web-bugs] master: recent bugs stat floating table fix (#97)
| From: | peterdd via GitHub | Date: | Fri, 03 Sep 2021 08:04:00 +0000 |
| Subject: | [web-bugs] master: recent bugs stat floating table fix (#97) | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-29575@lists.php.net to get a copy of this message | ||
Author: peterdd (peterdd)
Committer: GitHub (web-flow)
Pusher: nikic
Date: 2021-09-03T10:04:30+02:00
Commit: https://github.com/php/web-bugs/commit/8bf14f324bce9cb4c227aabc46f28d4b038cf916
Raw diff: https://github.com/php/web-bugs/commit/8bf14f324bce9cb4c227aabc46f28d4b038cf916.diff
recent bugs stat floating table fix (#97)
* recent bugs stat tables better float
using display:inline-block; or flex layouts provide better method than using historic the float:left
approach.
* css for recent bugs stat tables
Using display:inline-block; is better than using float:left;
Changed paths:
M www/css/style.css
M www/stats.php
Diff:
diff --git a/www/css/style.css b/www/css/style.css
index d0339383..293147a3 100644
--- a/www/css/style.css
+++ b/www/css/style.css
@@ -273,6 +273,12 @@ a.bug_stats_choosen {
background-color: #aabbcc;
}
+.bugstatrecent table {
+ display:inline-block;
+ vertical-align:top;
+ margin-right:1em;
+ margin-top:1em;
+}
/* ========= Other ========= */
a:link {
diff --git a/www/stats.php b/www/stats.php
index aaac6886..0a397366 100644
--- a/www/stats.php
+++ b/www/stats.php
@@ -133,7 +133,9 @@
}
}
-echo "</table>\n<hr>\n<p><b>PHP Versions for recent bug
reports:</b></p><div>";
+echo "</table>\n<hr>\n<p><b>PHP Versions for recent bug
reports:</b></p>";
+
+echo '<div class="bugstatrecent">';
$last_date = null;
foreach ($bugRepository->findPhpVersions($bug_type) as $row) {
@@ -141,7 +143,7 @@
if ($last_date !== null) {
echo "</table>\n\n";
}
- echo "<table style='float:left; margin-right:20px'>\n".
+ echo "<table>\n".
"<tr class='bug_header'><th
colspan='2'>{$row["d"]}</th></tr>\n";
$last_date = $row['d'];
}