fix vote display
authorJulien Moutinho <julm+cavote@autogeree.net>
Tue, 16 Sep 2014 23:28:23 +0000 (01:28 +0200)
committerJulien Moutinho <julm+cavote@autogeree.net>
Tue, 16 Sep 2014 23:28:23 +0000 (01:28 +0200)
static/css/cavote.css
templates/vote.html
templates/votes.html

index 8fc25a2..c636730 100644 (file)
 .span3 {
     width:24em;
  }
+.span3.description {
+       height:10em;
+       overflow:auto;
+ }
 .span8 {
     width:625px;
  }
 .span8 svg {
     margin:0;
     padding:0;
+    overflow:visible;
  }
 
 .results rect {
index a832684..7e36224 100644 (file)
@@ -42,8 +42,8 @@
      </g>
     {% for value in values %}
     <g transform="translate({{ 150 + (loop.index0 * 640 / loop.length) }},0)">
-      <rect width="{{ 640 / loop.length }}" height="20"></rect>
-      <rect class="{{ value.class }}" x="1" y ="1" width="{{ 640 / loop.length - 1}}" height="19"></rect>
+      <rect width="{{ 640 / loop.length + 1 }}" height="18"></rect>
+      <rect class="{{ value.class }}" x="1" y ="0" width="{{ 640 / loop.length - 1}}" height="18"></rect>
       <text class="choice-legend-item" text-anchor="start" x="{{ 640 / loop.length - 2 }}" y="9.5" dy=".35em"
        >{{ value.name }}</text>
      </g>
index 7b01e67..5f71561 100644 (file)
@@ -22,7 +22,7 @@ Liste des votes
         <h4>Groupe : {{ vote.groupname }}</h4>
         <h4>Categorie : {{ vote.category }}</h4>
       </div>
-      <div class="span3">
+      <div class="span3 description">
       {% if vote.description %}
       <h4>Description</h4>
       <p>