mirror of
https://github.com/a-nyx/maputnik-with-pmtiles.git
synced 2025-01-16 03:01:18 +01:00
Merge pull request #283 from orangemug/fix/issue-244
Fix to allow layer sections to expand smoothly
This commit is contained in:
commit
b60df8b074
3 changed files with 9 additions and 1 deletions
|
@ -21,7 +21,9 @@ export default class LayerEditorGroup extends React.Component {
|
||||||
<Collapser isCollapsed={this.props.isActive} />
|
<Collapser isCollapsed={this.props.isActive} />
|
||||||
</div>
|
</div>
|
||||||
<Collapse isOpened={this.props.isActive}>
|
<Collapse isOpened={this.props.isActive}>
|
||||||
|
<div className="react-collapse-container">
|
||||||
{this.props.children}
|
{this.props.children}
|
||||||
|
</div>
|
||||||
</Collapse>
|
</Collapse>
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
|
|
5
src/styles/_react-collapse.scss
Normal file
5
src/styles/_react-collapse.scss
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
// See <https://github.com/nkbt/react-collapse/commit/4f4fbce7c6c07b082dc62062338c9294c656f9df>
|
||||||
|
.react-collapse-container {
|
||||||
|
position: relative;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
|
@ -36,3 +36,4 @@ $toolbar-offset: 0;
|
||||||
@import 'zoomproperty';
|
@import 'zoomproperty';
|
||||||
@import 'popup';
|
@import 'popup';
|
||||||
@import 'map';
|
@import 'map';
|
||||||
|
@import 'react-collapse';
|
||||||
|
|
Loading…
Reference in a new issue