mirror of
https://github.com/a-nyx/maputnik-with-pmtiles.git
synced 2024-12-27 09:25:24 +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,
|
||||
left: 200,
|
||||
zIndex: 1,
|
||||
width: 300,
|
||||
width: 350,
|
||||
backgroundColor: colors.black
|
||||
}}>
|
||||
<ScrollContainer>
|
||||
|
|
|
@ -35,13 +35,13 @@ class ColorField extends React.Component {
|
|||
const pos = elem.getBoundingClientRect()
|
||||
return {
|
||||
top: pos.top,
|
||||
left: pos.left + 165,
|
||||
left: pos.left + 196,
|
||||
}
|
||||
} else {
|
||||
console.warn('Color field has no element to adjust position')
|
||||
return {
|
||||
top: 160,
|
||||
left: 500,
|
||||
left: 555,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -137,6 +137,7 @@ class LayerListItem extends React.Component {
|
|||
padding: margins[1],
|
||||
borderColor: Color(colors.black).lighten(0.10).string(),
|
||||
backgroundColor: colors.black,
|
||||
lineHeight: 1.3,
|
||||
}
|
||||
|
||||
if(this.state.hover) {
|
||||
|
|
Loading…
Reference in a new issue