Remove click-to-edit
This commit is contained in:
parent
202c73c35a
commit
a74439ac47
2 changed files with 14 additions and 21 deletions
|
@ -1811,10 +1811,11 @@ L.U.Map.include({
|
||||||
this._controlContainer
|
this._controlContainer
|
||||||
),
|
),
|
||||||
logo = L.DomUtil.add('a', 'logo', container),
|
logo = L.DomUtil.add('a', 'logo', container),
|
||||||
name = L.DomUtil.add('a', 'umap-click-to-edit', container, this.getDisplayName()),
|
name = L.DomUtil.add('a', 'map-name', container, this.getDisplayName()),
|
||||||
setName = function () {
|
setName = function () {
|
||||||
name.textContent = this.getDisplayName()
|
name.textContent = this.getDisplayName()
|
||||||
}
|
}
|
||||||
|
name.href = '#'
|
||||||
logo.href = '/'
|
logo.href = '/'
|
||||||
if (this.options.user) {
|
if (this.options.user) {
|
||||||
const userLabel = L.DomUtil.add('a', 'umap-user', container, this.options.user.name)
|
const userLabel = L.DomUtil.add('a', 'umap-user', container, this.options.user.name)
|
||||||
|
|
|
@ -433,26 +433,8 @@ ul.photon-autocomplete {
|
||||||
.umap-is-dirty a.leaflet-control-edit-disable {
|
.umap-is-dirty a.leaflet-control-edit-disable {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
.umap-click-to-edit {
|
.umap-click-to-edit:hover {
|
||||||
color: #4a90d9;
|
text-decoration: underline;
|
||||||
font-weight: bold;
|
|
||||||
cursor: pointer;
|
|
||||||
}
|
|
||||||
.umap-click-to-edit:after {
|
|
||||||
content: "\00a0";
|
|
||||||
background-repeat: no-repeat;
|
|
||||||
background-position: center center;
|
|
||||||
cursor: pointer;
|
|
||||||
width: 26px;
|
|
||||||
height: 100%;
|
|
||||||
display: inline-block;
|
|
||||||
background-position: -46px -41px;
|
|
||||||
}
|
|
||||||
.umap-click-to-edit:hover:after {
|
|
||||||
background-image: url('./img/16.svg');
|
|
||||||
}
|
|
||||||
.dark .umap-click-to-edit:hover:after {
|
|
||||||
background-image: url('./img/16-white.svg');
|
|
||||||
}
|
}
|
||||||
.umap-caption-bar {
|
.umap-caption-bar {
|
||||||
display: none;
|
display: none;
|
||||||
|
@ -487,6 +469,16 @@ ul.photon-autocomplete {
|
||||||
color: #fff;
|
color: #fff;
|
||||||
font-size: 1.2em;
|
font-size: 1.2em;
|
||||||
}
|
}
|
||||||
|
.umap-main-edit-toolbox .map-name {
|
||||||
|
display: inline-block;
|
||||||
|
max-width: 200px;
|
||||||
|
overflow: hidden;
|
||||||
|
white-space: nowrap;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
vertical-align: middle;
|
||||||
|
margin-right: 5px;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
.umap-edit-enabled .umap-main-edit-toolbox {
|
.umap-edit-enabled .umap-main-edit-toolbox {
|
||||||
top: 0;
|
top: 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue