Merge pull request #1420 from umap-project/restore-button
Restore style of "restore version button"
This commit is contained in:
commit
3d7f87354b
2 changed files with 8 additions and 11 deletions
|
@ -1347,13 +1347,14 @@ L.U.DataLayer = L.Evented.extend({
|
|||
const date = new Date(parseInt(data.at, 10))
|
||||
const content = `${date.toLocaleString(L.lang)} (${parseInt(data.size) / 1000}Kb)`
|
||||
const el = L.DomUtil.create('div', 'umap-datalayer-version', versionsContainer)
|
||||
const a = L.DomUtil.createButton(
|
||||
const button = L.DomUtil.createButton(
|
||||
'',
|
||||
el,
|
||||
L._('Restore this version'),
|
||||
'',
|
||||
() => this.restore(data.name),
|
||||
this
|
||||
)
|
||||
button.title = L._('Restore this version')
|
||||
L.DomUtil.add('span', '', el, content)
|
||||
}
|
||||
|
||||
|
|
|
@ -731,18 +731,14 @@ ul.photon-autocomplete {
|
|||
padding: 5px 0;
|
||||
border-bottom: 1px solid #202425;
|
||||
}
|
||||
.umap-datalayer-version a {
|
||||
.umap-datalayer-version button {
|
||||
display: inline-block;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
margin-left: 5px;
|
||||
background-position: -123px -75px;
|
||||
width: 24px;
|
||||
min-height: 24px;
|
||||
background-position: -122px -73px;
|
||||
background-repeat: no-repeat;
|
||||
background-image: url('./img/16-white.svg');
|
||||
vertical-align: middle;
|
||||
margin-right: 5px;
|
||||
border: 1px solid #202425;
|
||||
background-color: #2c3233;
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue