summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChad Kieffer <ckieffer@gmail.com>2009-10-18 23:38:27 -0600
committerChad Kieffer <ckieffer@gmail.com>2009-10-18 23:38:27 -0600
commitb2d0b3ebbb1764593e387a2e07e0d4e67f4f5474 (patch)
treecf716196ab397f6fd033139accbea400223b6afa
parentf421593c1d8fcd4fbfa385e8d2619d2bf79ddaee (diff)
Fix sidebar block admin layout. Don't hardcode block list height, use the equal_heights() function to set it.
-rw-r--r--modules/gallery/views/admin_sidebar.html.php4
-rw-r--r--themes/admin_wind/css/screen.css7
2 files changed, 7 insertions, 4 deletions
diff --git a/modules/gallery/views/admin_sidebar.html.php b/modules/gallery/views/admin_sidebar.html.php
index ea950b54..030dfdce 100644
--- a/modules/gallery/views/admin_sidebar.html.php
+++ b/modules/gallery/views/admin_sidebar.html.php
@@ -1,5 +1,9 @@
<?php defined("SYSPATH") or die("No direct script access.") ?>
<script type="text/javascript">
+ $(document).ready(function(){
+ $(".g-blocks-list").equal_heights();
+ });
+
$(function() {
$(".g-blocks-list ul").sortable({
connectWith: ".g-sortable-blocks",
diff --git a/themes/admin_wind/css/screen.css b/themes/admin_wind/css/screen.css
index 20593e9c..74323067 100644
--- a/themes/admin_wind/css/screen.css
+++ b/themes/admin_wind/css/screen.css
@@ -526,12 +526,11 @@ li.g-default-group h4, li.g-default-group .g-user {
/* Block admin ~~~~~~~~~~~~~~~~~~~~~~~~~ */
#g-admin-blocks .g-block {
- margin-right: 2em;
- height: 200px;
- width: 30% !important;
+ clear: none;
+ width: 30%;
}
-#g-admin-blocks .g-block li {
+#g-admin-blocks .g-block .g-draggable {
background: #e7e7e7;
/*border: 1px solid #fff;*/
margin-bottom: 1em;