diff --git a/public/tag/classes/renderer.php b/public/tag/classes/renderer.php index 1e830e11df7..7d47740a945 100644 --- a/public/tag/classes/renderer.php +++ b/public/tag/classes/renderer.php @@ -44,10 +44,9 @@ class core_tag_renderer extends plugin_renderer_base { $rv = $this->output->heading(get_string('searchtags', 'tag'), 2); $searchbox = $this->search_form($query, $tagcollid); - $rv .= html_writer::div($searchbox, '', array('id' => 'tag-search-box')); + $rv .= html_writer::div($searchbox, 'w-75 m-auto pt-3', ['id' => 'tag-search-box']); $tagcloud = core_tag_collection::get_tag_cloud($tagcollid, false, 150, 'name', $query); - $searchresults = ''; if ($tagcloud->get_count()) { $searchresults = $this->output->render_from_template('core_tag/tagcloud', $tagcloud->export_for_template($this->output)); @@ -164,15 +163,15 @@ class core_tag_renderer extends plugin_renderer_base { */ protected function search_form($query = '', $tagcollid = 0) { $searchurl = new moodle_url('/tag/search.php'); - $output = '
'; return $output; diff --git a/public/tag/search.php b/public/tag/search.php index eb0e915e9a8..8fb34e099f3 100644 --- a/public/tag/search.php +++ b/public/tag/search.php @@ -61,6 +61,7 @@ if ($PAGE->user_allowed_editing()) { } $PAGE->set_button($buttons); +/** @var core_tag_renderer $tagrenderer */ $tagrenderer = $PAGE->get_renderer('core', 'tag'); $pagecontents = $tagrenderer->tag_search_page($query, $tagcollid); diff --git a/public/theme/boost/scss/moodle/core.scss b/public/theme/boost/scss/moodle/core.scss index 585acb210f2..0870d538f88 100644 --- a/public/theme/boost/scss/moodle/core.scss +++ b/public/theme/boost/scss/moodle/core.scss @@ -693,11 +693,6 @@ table.mod_index { * Tags */ -#tag-search-box { - text-align: center; - margin: 10px auto; -} - span.flagged-tag, tr.flagged-tag, span.flagged-tag a, diff --git a/public/theme/boost/style/moodle.css b/public/theme/boost/style/moodle.css index f79aa824ee8..30a52ee2bde 100644 --- a/public/theme/boost/style/moodle.css +++ b/public/theme/boost/style/moodle.css @@ -26269,11 +26269,6 @@ table.mod_index { /** * Tags */ -#tag-search-box { - text-align: center; - margin: 10px auto; -} - span.flagged-tag, tr.flagged-tag, span.flagged-tag a, diff --git a/public/theme/classic/style/moodle.css b/public/theme/classic/style/moodle.css index 0ab297d187b..cba3ff5a4a9 100644 --- a/public/theme/classic/style/moodle.css +++ b/public/theme/classic/style/moodle.css @@ -26269,11 +26269,6 @@ table.mod_index { /** * Tags */ -#tag-search-box { - text-align: center; - margin: 10px auto; -} - span.flagged-tag, tr.flagged-tag, span.flagged-tag a,