From d4cf677d7e83725825a20031a4bde277ac25bea4 Mon Sep 17 00:00:00 2001 From: Christian Neumann Date: Fri, 20 Nov 2020 10:24:42 +0100 Subject: [PATCH] Fix message box layout for Firefox. --- UI/FullScreenMessageBoxHandler.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/UI/FullScreenMessageBoxHandler.ts b/UI/FullScreenMessageBoxHandler.ts index 70d5d907a..412d65a17 100644 --- a/UI/FullScreenMessageBoxHandler.ts +++ b/UI/FullScreenMessageBoxHandler.ts @@ -45,10 +45,13 @@ export class FullScreenMessageBox extends UIElement { return ""; } this._content = State.state.fullScreenMessage.data; - const uielement = new Combine([this._content]).SetStyle( - "display:block;" + + const innerWrap = new Combine([this._content]).SetStyle( + "display: block;" + "padding: 1em;" + - "padding-bottom:6em;" + + "padding-bottom: 6em; " + ); + const uielement = new Combine([innerWrap]).SetStyle( + "display:block;" + `margin-bottom: var(--return-to-the-map-height);` + "box-sizing:border-box;" + `height:calc(100vh - var(--return-to-the-map-height));` +