[ui] Use span instead of div for description
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Thu, 21 Jul 2016 09:24:08 +0200
changeset 1473 9a2147273199
parent 1472 bdc86d35b797
child 1474 aebba811c46a
[ui] Use span instead of div for description This has two effects: * better usage of horizontal space * avoid the edition button to be misplaced The second point was the original problem I was attempting to solve. We'll need better if it appears that the new line introduced by the div was actually better for readability.
views/viewlib.py
--- a/views/viewlib.py	Thu Jul 21 09:22:09 2016 +0200
+++ b/views/viewlib.py	Thu Jul 21 09:24:08 2016 +0200
@@ -36,7 +36,7 @@
         if with_annotation:
             description = getattr(entity, 'user_annotation', None)
             if description:
-                self.w(u' <div class="description text-muted">%s</div>' % description)
+                self.w(u' <span class="description text-muted">%s</span>' % description)
 
 
 class TextEntityAttributeView(EntityView):