Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
nomad-lab
encyclopedia-gui
Commits
5fe5eec5
Commit
5fe5eec5
authored
Feb 20, 2021
by
Lauri Himanen
Browse files
Added missing parenthesis to OptimadeTranslator, fixed margin issue with MaterialList.
parent
c3408954
Pipeline
#93911
skipped with stage
Changes
3
Pipelines
2
Expand all
Hide whitespace changes
Inline
Side-by-side
client/bundle.js
View file @
5fe5eec5
This diff is collapsed.
Click to expand it.
client/css/styles.css
View file @
5fe5eec5
...
...
@@ -751,8 +751,9 @@ img.remove-label{ cursor: pointer; }
#elementable
{
width
:
690px
;
position
:
relative
;
padding
:
0
26px
;
margin
:
0
auto
60px
;
background-color
:
#DDD
;}
margin
:
0
auto
0
;
background-color
:
#DDD
;
}
.element-info
{
position
:
absolute
;
display
:
none
;
...
...
@@ -852,9 +853,9 @@ div#specialRows{margin: 20px 40px;}
padding
:
2px
12px
;
margin
:
4px
0
;
}
.MaterialList
{
/*width: 690px; margin: 0 auto 80px;*/
}
.MaterialList
{
/*width: 690px; margin: 0 auto 80px;*/
margin-top
:
30px
;
}
/* #paginationWg erased*/
.MaterialList
.formula
{
...
...
client/src/search-mod/OptimadeTranslator.js
View file @
5fe5eec5
...
...
@@ -65,7 +65,9 @@ class OptimadeTranslator {
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
(
res
)
return
res
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment