mirror of
https://github.com/a-nyx/maputnik-with-pmtiles.git
synced 2024-12-29 09:40:29 +01:00
Small bug fixes
- Logo DOM sctrucutre now valid, no longer <a/> within </a> - `data-wd-key` not longer required - `maputnik-doc-popup` not longer hidden by LayerEditor accordion
This commit is contained in:
parent
cae6cffb7b
commit
d9a5548762
5 changed files with 28 additions and 16 deletions
|
@ -100,19 +100,23 @@ export default class Toolbar extends React.Component {
|
||||||
render() {
|
render() {
|
||||||
return <div className='maputnik-toolbar'>
|
return <div className='maputnik-toolbar'>
|
||||||
<div className="maputnik-toolbar__inner">
|
<div className="maputnik-toolbar__inner">
|
||||||
<ToolbarLink
|
<div
|
||||||
tabIndex="2"
|
className="maputnik-toolbar-logo-container"
|
||||||
href={"https://github.com/maputnik/editor"}
|
|
||||||
className="maputnik-toolbar-logo"
|
|
||||||
>
|
>
|
||||||
<a tabIndex="1" className="maputnik-toolbar-skip" href="#skip-menu">
|
<a className="maputnik-toolbar-skip" href="#skip-menu">
|
||||||
Skip navigation
|
Skip navigation
|
||||||
</a>
|
</a>
|
||||||
<img src={logoImage} alt="Maputnik" />
|
<a
|
||||||
<h1>Maputnik
|
href="https://github.com/maputnik/editor"
|
||||||
<span className="maputnik-toolbar-version">v{pkgJson.version}</span>
|
target="_blank"
|
||||||
</h1>
|
className="maputnik-toolbar-logo"
|
||||||
</ToolbarLink>
|
>
|
||||||
|
<img src={logoImage} alt="Maputnik" />
|
||||||
|
<h1>Maputnik
|
||||||
|
<span className="maputnik-toolbar-version">v{pkgJson.version}</span>
|
||||||
|
</h1>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
<div className="maputnik-toolbar__actions">
|
<div className="maputnik-toolbar__actions">
|
||||||
<ToolbarAction wdKey="nav:open" onClick={this.props.onToggleModal.bind(this, 'open')}>
|
<ToolbarAction wdKey="nav:open" onClick={this.props.onToggleModal.bind(this, 'open')}>
|
||||||
<OpenIcon />
|
<OpenIcon />
|
||||||
|
|
|
@ -4,7 +4,7 @@ import PropTypes from 'prop-types'
|
||||||
class SelectInput extends React.Component {
|
class SelectInput extends React.Component {
|
||||||
static propTypes = {
|
static propTypes = {
|
||||||
value: PropTypes.string.isRequired,
|
value: PropTypes.string.isRequired,
|
||||||
"data-wd-key": PropTypes.string.isRequired,
|
"data-wd-key": PropTypes.string,
|
||||||
options: PropTypes.array.isRequired,
|
options: PropTypes.array.isRequired,
|
||||||
style: PropTypes.object,
|
style: PropTypes.object,
|
||||||
onChange: PropTypes.func.isRequired,
|
onChange: PropTypes.func.isRequired,
|
||||||
|
|
|
@ -8,7 +8,7 @@ import SelectInput from '../inputs/SelectInput'
|
||||||
class LayerTypeBlock extends React.Component {
|
class LayerTypeBlock extends React.Component {
|
||||||
static propTypes = {
|
static propTypes = {
|
||||||
value: PropTypes.string.isRequired,
|
value: PropTypes.string.isRequired,
|
||||||
wdKey: PropTypes.string.isRequired,
|
wdKey: PropTypes.string,
|
||||||
onChange: PropTypes.func.isRequired,
|
onChange: PropTypes.func.isRequired,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,8 @@
|
||||||
// See <https://github.com/nkbt/react-collapse/commit/4f4fbce7c6c07b082dc62062338c9294c656f9df>
|
// See <https://github.com/nkbt/react-collapse/commit/4f4fbce7c6c07b082dc62062338c9294c656f9df>
|
||||||
.react-collapse-container {
|
.react-collapse-container {
|
||||||
position: relative;
|
display: flex;
|
||||||
overflow: hidden;
|
|
||||||
|
> * {
|
||||||
|
flex: 1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,7 +9,13 @@
|
||||||
background-color: $color-black;
|
background-color: $color-black;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.maputnik-toolbar-logo-container {
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
.maputnik-toolbar-logo {
|
.maputnik-toolbar-logo {
|
||||||
|
text-decoration: none;
|
||||||
|
display: block;
|
||||||
flex: 0 0 180px;
|
flex: 0 0 180px;
|
||||||
width: 180px;
|
width: 180px;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
|
@ -21,6 +27,7 @@
|
||||||
|
|
||||||
h1 {
|
h1 {
|
||||||
display: inline;
|
display: inline;
|
||||||
|
line-height: 26px;
|
||||||
}
|
}
|
||||||
|
|
||||||
img {
|
img {
|
||||||
|
@ -51,9 +58,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.maputnik-toolbar-version {
|
.maputnik-toolbar-version {
|
||||||
position: absolute;
|
|
||||||
font-size: 10px;
|
font-size: 10px;
|
||||||
bottom: -2px;
|
|
||||||
margin-left: 4px;
|
margin-left: 4px;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue