From 3f791297744f2cd0d0c4e7676bcbcb6caf146764 Mon Sep 17 00:00:00 2001 From: Niko Hoogeveen Date: Tue, 28 Jan 2025 15:02:34 -0500 Subject: [PATCH] Issue #358: Added some extra styling for outage icons --- classes/output/manage/base_table.php | 6 +++++- views/warningbar/warningbar.php | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/classes/output/manage/base_table.php b/classes/output/manage/base_table.php index db5e680..c64eef0 100644 --- a/classes/output/manage/base_table.php +++ b/classes/output/manage/base_table.php @@ -81,7 +81,7 @@ protected function create_data_buttons(outage $outage, $editdelete) { 'src' => $OUTPUT->image_url('t/preview'), 'alt' => get_string('view'), 'class' => 'iconsmall', - + 'style' => 'width: 1.5rem; height: 1.5rem;', ]), [ 'title' => get_string('view'), @@ -97,6 +97,7 @@ protected function create_data_buttons(outage $outage, $editdelete) { 'src' => $OUTPUT->image_url('t/edit'), 'alt' => get_string('edit'), 'class' => 'iconsmall', + 'style' => 'width: 1.5rem; height: 1.5rem;', ]), ['title' => get_string('edit')] ); @@ -109,6 +110,7 @@ protected function create_data_buttons(outage $outage, $editdelete) { 'src' => $OUTPUT->image_url('t/copy'), 'alt' => get_string('clone', 'auth_outage'), 'class' => 'iconsmall', + 'style' => 'width: 1.5rem; height: 1.5rem;', ]), ['title' => get_string('clone', 'auth_outage')] @@ -122,6 +124,7 @@ protected function create_data_buttons(outage $outage, $editdelete) { 'src' => $OUTPUT->image_url('t/check'), 'alt' => get_string('finish', 'auth_outage'), 'class' => 'iconsmall', + 'style' => 'width: 1.5rem; height: 1.5rem;', ]), ['title' => get_string('finish', 'auth_outage')] ); @@ -135,6 +138,7 @@ protected function create_data_buttons(outage $outage, $editdelete) { 'src' => $OUTPUT->image_url('t/delete'), 'alt' => get_string('delete'), 'class' => 'iconsmall', + 'style' => 'width: 1.5rem; height: 1.5rem;', ]), ['title' => get_string('delete')] ); diff --git a/views/warningbar/warningbar.php b/views/warningbar/warningbar.php index 754e60c..382fd8f 100644 --- a/views/warningbar/warningbar.php +++ b/views/warningbar/warningbar.php @@ -52,6 +52,7 @@ 'src' => $OUTPUT->image_url('t/check'), 'alt' => get_string('finish', 'auth_outage'), 'class' => 'iconsmall', + 'style' => 'width: 1rem; height: 1rem;', ]).' '.get_string('finish', 'auth_outage'); $attr = [ 'title' => get_string('finish', 'auth_outage'),