diff --git a/app/static/css/scodoc.css b/app/static/css/scodoc.css
index ed67808a9..4a3a95f04 100644
--- a/app/static/css/scodoc.css
+++ b/app/static/css/scodoc.css
@@ -1315,10 +1315,11 @@ div#modimpl_coefs {
   font-size: 60%;
 }
 .coefs_histo>div{
+  --height: calc(32px * var(--coef) / var(--max));
+	height: var(--height);
+	padding: var(--height) 4px 0 4px;
   background: #09c;
   box-sizing: border-box;
-  padding: 4px;
-  height: calc(100% * var(--coef) / var(--max));
 }
 .coefs_histo>div:nth-child(odd){
   background-color: #9c0;