Commit 2626b512 authored by alain's avatar alain 🐙
Browse files

about text v limit

parent 327d329a
......@@ -13,7 +13,7 @@ class Panel extends React.Component {
componentDidMount() {
const { id, openOnLoad } = this.props
if(openOnLoad && window.innerHeight > 700) {
if(openOnLoad && window.innerHeight > 800) {
const change = {}
change[id] = true
......
......@@ -25,7 +25,7 @@ class PanelLayers extends React.Component {
unitStatus = {}
dataGroups.forEach((dataGroup, i) => {
panelStatus[dataGroup.title] = (i === 0 && window.innerHeight > 700 ? true : false)
panelStatus[dataGroup.title] = (i === 0 && window.innerHeight > 800 ? true : false)
Object.keys(dataGroup.parameters).forEach(parameter => {
if(dataGroup.parameters[parameter].units) {
......@@ -79,7 +79,7 @@ class PanelLayers extends React.Component {
return (
<li key={option} className={(active ? "active" : "")}>
<span className="parameter-title" onClick={() => {
if(!active && viewportHeight < 700) {
if(!active && viewportHeight < 800) {
setTimeout(() => {
this.toggleGroup(dataGroup.title)
}, 500);
......
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