forked from MapComplete/MapComplete
Add back button on simpleAddUI
This commit is contained in:
parent
ddea3d2fc1
commit
6e77504854
7 changed files with 178 additions and 139 deletions
|
@ -2,6 +2,7 @@ import {UIElement} from "../UIElement";
|
|||
import Svg from "../../Svg";
|
||||
import State from "../../State";
|
||||
import Combine from "./Combine";
|
||||
import Ornament from "./Ornament";
|
||||
|
||||
/**
|
||||
* Wraps some contents into a panel that scrolls the content _under_ the title
|
||||
|
@ -17,10 +18,12 @@ export default class ScrollableFullScreen extends UIElement{
|
|||
State.state.selectedElement.setData(undefined);
|
||||
}).SetClass("only-on-mobile")
|
||||
.SetClass("featureinfobox-back-to-the-map")
|
||||
|
||||
title.SetClass("featureinfobox-title")
|
||||
this._component = new Combine([
|
||||
new Combine([returnToTheMap, title]).SetClass("featureinfobox-titlebar"),
|
||||
new Combine([content]).SetClass("featureinfobox-content")
|
||||
new Combine([content]).SetClass("featureinfobox-content"),
|
||||
new Combine([ new Ornament().SetStyle("height:5em;")]).SetClass("only-on-mobile")
|
||||
// We add an ornament which takes around 5em. This is in order to make sure the Web UI doesn't hide
|
||||
])
|
||||
this.SetClass("featureinfobox");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue