Commit 5fe5eec5 authored by Lauri Himanen's avatar Lauri Himanen
Browse files

Added missing parenthesis to OptimadeTranslator, fixed margin issue with MaterialList.

parent c3408954
Pipeline #93911 skipped with stage
This diff is collapsed.
...@@ -751,8 +751,9 @@ img.remove-label{ cursor: pointer; } ...@@ -751,8 +751,9 @@ img.remove-label{ cursor: pointer; }
#elementable{width:690px; position: relative; #elementable{width:690px; position: relative;
padding: 0 26px; padding: 0 26px;
margin: 0 auto 60px; margin: 0 auto 0;
background-color: #DDD;} background-color: #DDD;
}
.element-info{position: absolute; .element-info{position: absolute;
display: none; display: none;
...@@ -852,9 +853,9 @@ div#specialRows{margin: 20px 40px;} ...@@ -852,9 +853,9 @@ div#specialRows{margin: 20px 40px;}
padding: 2px 12px; margin: 4px 0; padding: 2px 12px; margin: 4px 0;
} }
.MaterialList{ /*width: 690px; margin: 0 auto 80px;*/
margin-top: 30px;
.MaterialList{ /*width: 690px; margin: 0 auto 80px;*/} }
/* #paginationWg erased*/ /* #paginationWg erased*/
.MaterialList .formula { .MaterialList .formula {
......
...@@ -65,7 +65,9 @@ class OptimadeTranslator { ...@@ -65,7 +65,9 @@ class OptimadeTranslator {
query[i] = q; query[i] = q;
} }
let res = query.join(" ") // Surround with parenthesis so that this part will not get incorrectly
// mixed with the filters due to operator precedence
let res = "(" + query.join(" ") + ")"
console.log("FINAL OPTIMADE QUERY:") console.log("FINAL OPTIMADE QUERY:")
console.log(res) console.log(res)
return res return res
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment