mirror of
https://github.com/FoggedLens/iD.git
synced 2026-03-31 17:20:30 +02:00
Added button to close Map controls.
This commit is contained in:
@@ -2727,12 +2727,12 @@ div.full-screen > button:hover {
|
||||
position: fixed;
|
||||
top: 60px;
|
||||
bottom: 30px;
|
||||
padding: 20px 50px 20px 20px;
|
||||
padding: 5px 35px 5px 5px;
|
||||
right: 0;
|
||||
overflow: auto;
|
||||
}
|
||||
[dir='rtl'] .map-overlay.content {
|
||||
padding: 20px 20px 20px 50px;
|
||||
padding: 5px 5px 5px 35px;
|
||||
left: 0;
|
||||
right: auto !important;
|
||||
}
|
||||
|
||||
@@ -350,6 +350,11 @@ export function uiBackground(context) {
|
||||
.call(svgIcon('#icon-layers', 'light'))
|
||||
.call(paneTooltip);
|
||||
|
||||
pane
|
||||
.append('button')
|
||||
.on('click', function() { uiBackground.hidePane(); })
|
||||
.call(svgIcon('#icon-close'));
|
||||
|
||||
pane
|
||||
.append('h2')
|
||||
.text(t('background.title'));
|
||||
|
||||
@@ -382,6 +382,11 @@ export function uiHelp(context) {
|
||||
.call(tooltipBehavior);
|
||||
var shown = false;
|
||||
|
||||
pane
|
||||
.append('button')
|
||||
.on('click', function() { uiHelp.hidePane(); })
|
||||
.call(svgIcon('#icon-close'));
|
||||
|
||||
|
||||
var toc = pane
|
||||
.append('ul')
|
||||
|
||||
@@ -457,6 +457,11 @@ export function uiMapData(context) {
|
||||
.call(paneTooltip);
|
||||
|
||||
|
||||
pane
|
||||
.append('button')
|
||||
.on('click', function() { uiMapData.hidePane(); })
|
||||
.call(svgIcon('#icon-close'));
|
||||
|
||||
pane
|
||||
.append('h2')
|
||||
.text(t('map_data.title'));
|
||||
|
||||
Reference in New Issue
Block a user