mirror of
https://github.com/a-nyx/maputnik-with-pmtiles.git
synced 2025-01-14 20:23:27 +01:00
Give more space to layer editor
This commit is contained in:
parent
6b0b29d1da
commit
a3d586a75d
3 changed files with 4 additions and 3 deletions
|
@ -52,7 +52,7 @@ class AppLayout extends React.Component {
|
||||||
top: 40,
|
top: 40,
|
||||||
left: 200,
|
left: 200,
|
||||||
zIndex: 1,
|
zIndex: 1,
|
||||||
width: 300,
|
width: 350,
|
||||||
backgroundColor: colors.black
|
backgroundColor: colors.black
|
||||||
}}>
|
}}>
|
||||||
<ScrollContainer>
|
<ScrollContainer>
|
||||||
|
|
|
@ -35,13 +35,13 @@ class ColorField extends React.Component {
|
||||||
const pos = elem.getBoundingClientRect()
|
const pos = elem.getBoundingClientRect()
|
||||||
return {
|
return {
|
||||||
top: pos.top,
|
top: pos.top,
|
||||||
left: pos.left + 165,
|
left: pos.left + 196,
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
console.warn('Color field has no element to adjust position')
|
console.warn('Color field has no element to adjust position')
|
||||||
return {
|
return {
|
||||||
top: 160,
|
top: 160,
|
||||||
left: 500,
|
left: 555,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -137,6 +137,7 @@ class LayerListItem extends React.Component {
|
||||||
padding: margins[1],
|
padding: margins[1],
|
||||||
borderColor: Color(colors.black).lighten(0.10).string(),
|
borderColor: Color(colors.black).lighten(0.10).string(),
|
||||||
backgroundColor: colors.black,
|
backgroundColor: colors.black,
|
||||||
|
lineHeight: 1.3,
|
||||||
}
|
}
|
||||||
|
|
||||||
if(this.state.hover) {
|
if(this.state.hover) {
|
||||||
|
|
Loading…
Reference in a new issue