Commit 745901e6 authored by Lauri Himanen's avatar Lauri Himanen Committed by Markus Scheidgen
Browse files

Small visual changes.

parent 36a03035
...@@ -138,9 +138,9 @@ const metainfoPaths = { ...@@ -138,9 +138,9 @@ const metainfoPaths = {
function MetaInfoTooltip({def, path}) { function MetaInfoTooltip({def, path}) {
const theme = useTheme() const theme = useTheme()
return <div style={{display: 'flex', flexDirection: 'column', padding: 5}}> return <div style={{display: 'flex', flexDirection: 'column', padding: 2}}>
<h2 style={{fontSize: 14, margin: 0, padding: 0}}>Metainfo definition:</h2> <p style={{fontSize: 14, margin: 0, padding: 0}}>Metainfo definition:</p>
<a style={{fontSize: 14, color: theme.palette.secondary.main}} href={`/fairdi/nomad/latest/gui/metainfo/${path}`}>{def.name}</a> <a style={{fontSize: 14, color: theme.palette.secondary.light}} href={`/fairdi/nomad/latest/gui/metainfo/${path}`}>{def.name}</a>
</div> </div>
} }
......
...@@ -13,6 +13,7 @@ export default function QuantityHistogram({ ...@@ -13,6 +13,7 @@ export default function QuantityHistogram({
}) { }) {
title = title || quantity title = title || quantity
values = values || (searchQuantities[quantity] && searchQuantities[quantity].statistic_values) values = values || (searchQuantities[quantity] && searchQuantities[quantity].statistic_values)
console.log(values)
numberOfValues = numberOfValues || (values && values.length) || (searchQuantities[quantity] && searchQuantities[quantity].statistic_size) numberOfValues = numberOfValues || (values && values.length) || (searchQuantities[quantity] && searchQuantities[quantity].statistic_size)
const {response: {statistics, metric}, query, setQuery} = useContext(searchContext) const {response: {statistics, metric}, query, setQuery} = useContext(searchContext)
const statisticsData = statistics[quantity] const statisticsData = statistics[quantity]
......
Supports Markdown
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