Skip to content

Commit 6f0d18a

Browse files
committed
formatting improvements
1 parent 9476979 commit 6f0d18a

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

pages/editpatch.php

+8-6
Original file line numberDiff line numberDiff line change
@@ -59,16 +59,18 @@
5959
$author = $comment->user->shortName() . ' (' . $comment->user->id . ')';
6060
$photo = $comment->user->getPhoto();
6161
} else {
62-
$author = 'Bot';
63-
$photo = 'https://api.dicebear.com/9.x/bottts/svg?seed=Liliana&scale=70&baseColor=00acc1&eyes=roundFrame02&mouth=smile01&texture[]&top=antenna';
62+
$author = '';
63+
$photo = 'https://api.dicebear.com/9.x/bottts/svg?seed=Liliana&baseColor=00acc1&eyes=roundFrame02&mouth=smile01&texture[]&top=antenna';
6464
}
65-
$text = nl2br(htmlspecialchars($comment->text));
65+
$text = nl2br(htmlspecialchars(wordwrap($comment->text, 80, "\n", true)));
6666

6767
echo <<<HTML
6868
<tr>
69-
<td><b>$author</b><br>
70-
<img src="$photo" alt="Photo"><br>
71-
{$comment->time->format('d/m/Y H:i:s')}</td>
69+
<td>
70+
<p><img src="$photo" alt="Photo" width="100px"></p>
71+
<p><b>$author</b></p>
72+
<p>{$comment->time->format('d/m/Y H:i:s')}</p>
73+
</td>
7274
<td>$text</td>
7375
</tr>
7476
HTML;

templates.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,7 @@ function dolink($page, $txt, $args = []) {
8383
}
8484

8585
function mk_box_left_begin() {
86-
echo '<div style="display: inline-block">',
87-
'<div style="float: left; max-width: 900px">';
86+
echo '<div style="display: inline-block"><div style="float: left">';
8887
}
8988

9089
function mk_box_right_begin() {

0 commit comments

Comments
 (0)