From 9deaeaa174a49c5c8031bb68a1b228b05b79e509 Mon Sep 17 00:00:00 2001
From: moodler <moodler>
Date: Fri, 23 Feb 2007 08:21:38 +0000
Subject: [PATCH] Merged changes from stable to tidy course cats

---
 course/lib.php                   | 4 ++--
 theme/standard/styles_layout.css | 8 +++++++-
 2 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/course/lib.php b/course/lib.php
index d023cf7cea..c05b7fd87f 100644
--- a/course/lib.php
+++ b/course/lib.php
@@ -1676,7 +1676,7 @@ function print_category_info($category, $depth, $files = false) {
             echo '</td>';
         }
 
-        echo '<td valign="top">'.$catimage.'</td>';
+        echo '<td valign="top" class="category image">'.$catimage.'</td>';
         echo '<td valign="top" class="category name">';
         echo '<a '.$catlinkcss.' href="'.$CFG->wwwroot.'/course/category.php?id='.$category->id.'">'.$category->name.'</a>';
         echo '</td>';
@@ -2571,4 +2571,4 @@ function can_delete_course($courseid) {
 
 
 
-?>
\ No newline at end of file
+?>
diff --git a/theme/standard/styles_layout.css b/theme/standard/styles_layout.css
index 8494a7e946..54b821b591 100644
--- a/theme/standard/styles_layout.css
+++ b/theme/standard/styles_layout.css
@@ -1618,7 +1618,13 @@ body#course-index .addcategory {
 }
 
 .categorylist {
-  width:100%;
+  width:90%;
+  margin-left:auto;
+  margin-right:auto;
+}
+
+.categorylist .category.image {
+  width:20px;
 }
 
 .categoryboxcontent {
-- 
2.39.5