Browse Source

fix vote display

Julien Moutinho 10 years ago
parent
commit
a29eb5ee88
3 changed files with 8 additions and 3 deletions
  1. 5 0
      static/css/cavote.css
  2. 2 2
      templates/vote.html
  3. 1 1
      templates/votes.html

+ 5 - 0
static/css/cavote.css

@@ -127,12 +127,17 @@
 .span3 {
 .span3 {
     width:24em;
     width:24em;
  }
  }
+.span3.description {
+	height:10em;
+	overflow:auto;
+ }
 .span8 {
 .span8 {
     width:625px;
     width:625px;
  }
  }
 .span8 svg {
 .span8 svg {
     margin:0;
     margin:0;
     padding:0;
     padding:0;
+    overflow:visible;
  }
  }
 
 
 .results rect {
 .results rect {

+ 2 - 2
templates/vote.html

@@ -42,8 +42,8 @@
      </g>
      </g>
     {% for value in values %}
     {% for value in values %}
     <g transform="translate({{ 150 + (loop.index0 * 640 / loop.length) }},0)">
     <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"
       <text class="choice-legend-item" text-anchor="start" x="{{ 640 / loop.length - 2 }}" y="9.5" dy=".35em"
        >{{ value.name }}</text>
        >{{ value.name }}</text>
      </g>
      </g>

+ 1 - 1
templates/votes.html

@@ -22,7 +22,7 @@ Liste des votes
         <h4>Groupe : {{ vote.groupname }}</h4>
         <h4>Groupe : {{ vote.groupname }}</h4>
         <h4>Categorie : {{ vote.category }}</h4>
         <h4>Categorie : {{ vote.category }}</h4>
       </div>
       </div>
-      <div class="span3">
+      <div class="span3 description">
       {% if vote.description %}
       {% if vote.description %}
       <h4>Description</h4>
       <h4>Description</h4>
       <p>
       <p>