issue: wrap items to allow containment
authorMischa POSLAWSKY <perl@shiar.org>
Mon, 25 Nov 2019 15:15:18 +0000 (16:15 +0100)
committerMischa POSLAWSKY <perl@shiar.org>
Mon, 25 Nov 2019 20:14:17 +0000 (21:14 +0100)
Fix contents from appearing in next <li> with lower screen width.

Similar to column lists in commit v3.4-0-g72d8db8c87 (2018-07-08)
[login/list: wrap each item to allow containment].

issue/index.php

index b34da6db60b4cb59b9942c550530bc1beff1265f..8f4ea8bd23e418590c3945a039d34f798de3814e 100644 (file)
@@ -67,7 +67,7 @@ if ($id == 'feed') {
 ob_start();
 print '<ul>';
 while ($row = $query->fetch()) {
-       printf('<li%s><a href="%s">%s <small class="date">%s</small>%s</a>',
+       printf('<li%s><div><a href="%s">%s <small class="date">%s</small>%s</a>',
                $row->closed ? ' class="disabled"' : '',
                "/$Page/{$row->id}/{$row->link}",
                sprintf($row->closed ? '<s>%s</s>' : '%s',
@@ -78,7 +78,7 @@ while ($row = $query->fetch()) {
                        isset($row->assign) ? '<em class="right">'.$row->assign.'</em>' : '',
                ])
        );
-       print "</li>\n";
+       print "</div></li>\n";
 }
 print "</ul>\n";
 $Place['issuelist'] = ob_get_clean();