Fix for ticket #1117 align videos to the center.

This commit is contained in:
Tim Almdal
2010-06-17 09:10:01 -07:00
parent 6e54286ef2
commit 2bbce8dddb
2 changed files with 3 additions and 3 deletions

View File

@@ -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}";
}

View File

@@ -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;
}