diff --git a/ext/image/theme.php b/ext/image/theme.php
index 3fceb2d7..8d5200fb 100644
--- a/ext/image/theme.php
+++ b/ext/image/theme.php
@@ -4,7 +4,7 @@ declare(strict_types=1);
namespace Shimmie2;
-use function MicroHTML\{INPUT, SPAN};
+use function MicroHTML\{INPUT, emptyHTML};
class ImageIOTheme extends Themelet
{
@@ -14,13 +14,11 @@ class ImageIOTheme extends Themelet
*/
public function get_deleter_html(int $image_id): \MicroHTML\HTMLElement
{
- return SPAN(
- ["id"=>"image_delete_form"],
- SHM_SIMPLE_FORM(
- "image/delete",
- INPUT(["type" => 'hidden', "name" => 'image_id', "value" => $image_id]),
- INPUT(["type" => 'submit', "value" => 'Delete', "onclick" => 'return confirm("Delete the image?");', "id" => "image_delete_button"]),
- )
- );
+ $form = SHM_FORM("image/delete", form_id: "image_delete_form");
+ $form->appendChild(emptyHTML(
+ INPUT(["type" => 'hidden', "name" => 'image_id', "value" => $image_id]),
+ INPUT(["type" => 'submit', "value" => 'Delete', "onclick" => 'return confirm("Delete the image?");', "id" => "image_delete_button"]),
+ ));
+ return $form;
}
}
diff --git a/ext/report_image/style.css b/ext/report_image/style.css
index 7fd0e56a..ad5f881c 100644
--- a/ext/report_image/style.css
+++ b/ext/report_image/style.css
@@ -3,3 +3,6 @@
overflow-wrap: break-word;
word-wrap: break-word;
}
+#reportedimage .formstretch INPUT {
+ width: 100%;
+}
\ No newline at end of file
diff --git a/ext/report_image/theme.php b/ext/report_image/theme.php
index dfd07fbd..b8b17372 100644
--- a/ext/report_image/theme.php
+++ b/ext/report_image/theme.php
@@ -23,19 +23,19 @@ class ReportImageTheme extends Themelet
$iabbe = send_event(new ImageAdminBlockBuildingEvent($image, $user, "report"));
ksort($iabbe->parts);
- $actions = join("
", $iabbe->parts);
+ $actions = join("", $iabbe->parts);
$h_reportedimages .= "