diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2010-06-17 09:10:01 -0700 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2010-06-17 09:10:01 -0700 |
commit | 2bbce8dddb0ab0a00aee727e2f639b793988a1d1 (patch) | |
tree | aa74321274903b7437015746532865402b7f4f6f | |
parent | 6e54286ef25d02910e69ce553ab1c719dc7299cc (diff) |
Fix for ticket #1117 align videos to the center.
-rw-r--r-- | modules/gallery/models/item.php | 4 | ||||
-rw-r--r-- | themes/wind/css/screen.css | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/modules/gallery/models/item.php b/modules/gallery/models/item.php index 5e8a2d09..4d05e4da 100644 --- a/modules/gallery/models/item.php +++ b/modules/gallery/models/item.php @@ -684,8 +684,8 @@ class Item_Model extends ORM_MPTT { } } - $v->attrs = array_merge($extra_attrs, - array("style" => "display:block;width:{$width}px;height:{$height}px")); + $v->attrs = array_merge($extra_attrs, array("style" => "width:{$width}px;height:{$height}px", + "class" => "g-movie")); if (empty($v->attrs["id"])) { $v->attrs["id"] = "g-item-id-{$this->id}"; } diff --git a/themes/wind/css/screen.css b/themes/wind/css/screen.css index f8e26073..1e55a967 100644 --- a/themes/wind/css/screen.css +++ b/themes/wind/css/screen.css @@ -302,7 +302,7 @@ td { } #g-item img.g-resize, -#g-item a.g-movie object { +#g-item a.g-movie { display: block; margin: 0 auto; } |