Changeset:
        0db3de151754
        
https://sourceforge.net/p/mrbs/hg-code/ci/0db3de1517543636960eab266ef53a09f0630463
Author:
        Campbell Morrison <[email protected]>
Date:
        Mon Mar 27 21:39:43 2017 +0100
Log message:

Sorted out row alignment

diffstat:

 web/css/mrbs.css.php |  6 +++++-
 web/index.php        |  7 ++++---
 2 files changed, 9 insertions(+), 4 deletions(-)

diffs (40 lines):

diff -r 739912c24d8b -r 0db3de151754 web/css/mrbs.css.php
--- a/web/css/mrbs.css.php      Mon Mar 27 21:17:22 2017 +0100
+++ b/web/css/mrbs.css.php      Mon Mar 27 21:39:43 2017 +0100
@@ -355,7 +355,11 @@
 .dwm_main#month_main td.invalid {background-color: <?php echo 
$main_table_month_invalid_color ?>}
 .dwm_main#month_main a {height: 100%; width: 100%; padding: 0 2px 0 2px}
 
-td.new a, a.new_booking {display: block; font-size: medium; text-align: center}
+td.new a, a.new_booking {
+  display: block;
+  text-align: center;
+}
+
 td.new img, .new_booking img {margin: auto; padding: 4px 0 2px 0}
 img.repeat_symbol {float: right; padding: 3px}
 .dwm_main#month_main img.repeat_symbol {padding: 2px}
diff -r 739912c24d8b -r 0db3de151754 web/index.php
--- a/web/index.php     Mon Mar 27 21:17:22 2017 +0100
+++ b/web/index.php     Mon Mar 27 21:39:43 2017 +0100
@@ -132,7 +132,7 @@
   $html .= "<tbody>\n";
   foreach ($map as $room_id => $row)
   {
-    $html.= "<tr><td>$room_id</td></tr>\n";
+    $html.= "<tr><td><a href=\"\">$room_id</a></td></tr>\n";
   }
   $html .= "</tbody>\n";
   
@@ -181,8 +181,9 @@
         }
         else
         {
-          // This is an empty slot
-          $content = "<a href=\"\"></a>\n";  // JUST FOR NOW - TO DO
+          // This is an empty slot.  We need the non-breaking space to give the
+          // cell height.
+          $content = "<a href=\"\">&nbsp;</a>\n";  // JUST FOR NOW - TO DO
           $html .= get_cell_html($content, 'new');
         }
       }

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits

Reply via email to