get extra space available in primary view when no right boxes
authorSylvain Thenault <sylvain.thenault@logilab.fr>
Thu, 08 Jan 2009 14:36:07 +0100
changeset 371 4e849b424aaa
parent 370 7e76f651314b
child 372 a8a975a88368
get extra space available in primary view when no right boxes
web/data/cubicweb.css
web/views/baseviews.py
--- a/web/data/cubicweb.css	Thu Jan 08 12:55:41 2009 +0100
+++ b/web/data/cubicweb.css	Thu Jan 08 14:36:07 2009 +0100
@@ -485,6 +485,7 @@
 div.sideRelated {
   margin-right: 1em;
   padding: 12px 0px 12px 12px;
+  min-width: 21em;
 }
 
 div.metadata {
--- a/web/views/baseviews.py	Thu Jan 08 12:55:41 2009 +0100
+++ b/web/views/baseviews.py	Thu Jan 08 14:36:07 2009 +0100
@@ -140,7 +140,7 @@
         # if the entity isn't meta itself
         self.w(u'<table border="0" width="100%">')
         self.w(u'<tr>')
-        self.w(u'<td style="width:75%" valign="top">')
+        self.w(u'<td valign="top">')
         self.w(u'<div class="mainInfo">')
         self.render_entity_attributes(entity, siderelations)
         self.w(u'</div>')
@@ -157,8 +157,6 @@
         self.w(u'<td valign="top">')
         self.render_side_related(entity, siderelations)
         self.w(u'</td>')
-        self.w(u'<td valign="top">')
-        self.w(u'</td>')        
         self.w(u'</tr>')
         self.w(u'</table>')        
         self.w(u'<div class="navcontentbottom">')