From 4aebf059181922cdd531b78e5e64652fe73d41f9 Mon Sep 17 00:00:00 2001 From: Tobias Date: Sun, 17 Jan 2021 21:02:56 +0100 Subject: [PATCH] Tailwind for H1 + Subline --- AllTranslationAssets.ts | 2 +- assets/translations.json | 2 +- index.ts | 5 ++--- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/AllTranslationAssets.ts b/AllTranslationAssets.ts index 7fff07c1f..ea5a0cf75 100644 --- a/AllTranslationAssets.ts +++ b/AllTranslationAssets.ts @@ -22,7 +22,7 @@ export default class AllTranslationAssets { ready: new Translation( {"en":"Done!","ca":"Fet.","es":"Hecho.","nl":"Klaar!","fr":"Finis!","gl":"Feito!","de":"Erledigt!"} ), retrying: new Translation( {"en":"Loading data failed. Trying again... ({count})","ca":"La càrrega de dades ha fallat.Tornant-ho a intentar... ({count})","es":"La carga de datos ha fallado.Volviéndolo a probar... ({count})","gl":"A carga dos datos fallou. Tentándoo de novo... ({count})","fr":"Le chargement a échoué. Essayer à nouveau... ({count})","de":"Laden von Daten fehlgeschlagen. Erneuter Versuch... ({count})"} ), }, - general: { index: new Translation( {"#":"This text is shown above the theme buttons when no theme is loaded","en":"

Welcome to MapComplete

MapComplete is an OpenStreetMap-viewer and editor, which shows you information about a specific theme.

Pick a theme below to get started.","nl":"

Welkom bij MapComplete

MapComplete is een OpenStreetMap applicatie waar informatie over een specifiek thema bekeken en aangepast kan worden.

Kies hieronder een thema om te beginnen."} ), + general: { index: new Translation( {"#":"This text is shown above the theme buttons when no theme is loaded","en":"

Welcome to MapComplete

MapComplete is an OpenStreetMap-viewer and editor, which shows you information about a specific theme.

Pick a theme below to get started.

","nl":"

Welkom bij MapComplete

MapComplete is een OpenStreetMap applicatie waar informatie over een specifiek thema bekeken en aangepast kan worden.

Kies hieronder een thema om te beginnen."} ), loginWithOpenStreetMap: new Translation( {"en":"Login with OpenStreetMap","ca":"Entra a OpenStreetMap","es":"Entra en OpenStreetMap","nl":"Aanmelden met OpenStreetMap","fr":"Se connecter avec OpenStreeMap","gl":"Inicia a sesión no OpenStreetMap","de":"Anmeldung mit OpenStreetMap"} ), welcomeBack: new Translation( {"en":"You are logged in, welcome back!","ca":"Has entrat, benvingut.","es":"Has entrado, bienvenido.","nl":"Je bent aangemeld. Welkom terug!","fr":"Vous êtes connecté. Bienvenue!","gl":"Iniciaches a sesión, benvido.","de":"Sie sind eingeloggt, willkommen zurück!"} ), loginToStart: new Translation( {"en":"Login to answer this question","ca":"Entra per contestar aquesta pregunta","es":"Entra para contestar esta pregunta","nl":"Meld je aan om deze vraag te beantwoorden","fr":"Connectez-vous pour répondre à cette question","gl":"Inicia a sesión para responder esta pregunta","de":"Anmelden, um diese Frage zu beantworten"} ), diff --git a/assets/translations.json b/assets/translations.json index 815d0f921..db8188856 100644 --- a/assets/translations.json +++ b/assets/translations.json @@ -164,7 +164,7 @@ "general": { "index": { "#": "This text is shown above the theme buttons when no theme is loaded", - "en": "

Welcome to MapComplete

MapComplete is an OpenStreetMap-viewer and editor, which shows you information about a specific theme.

Pick a theme below to get started.", + "en": "

Welcome to MapComplete

MapComplete is an OpenStreetMap-viewer and editor, which shows you information about a specific theme.

Pick a theme below to get started.

", "nl": "

Welkom bij MapComplete

MapComplete is een OpenStreetMap applicatie waar informatie over een specifiek thema bekeken en aangepast kan worden.

Kies hieronder een thema om te beginnen." }, diff --git a/index.ts b/index.ts index 3514213af..8d59d18bf 100644 --- a/index.ts +++ b/index.ts @@ -83,7 +83,7 @@ if (layoutFromBase64.startsWith("wiki:")) { try { const parsed = JSON.parse(data); // Overwrite the id to the wiki:value - parsed.id = layoutFromBase64.replace(/[: \/]/g, '-') + parsed.id = layoutFromBase64.replace(/[: \/]/g, '-') const layout = new LayoutConfig(parsed); InitUiElements.InitAll(layout, layoutFromBase64, testing, layoutFromBase64, btoa(data)); } catch (e) { @@ -115,9 +115,8 @@ if (layoutFromBase64.startsWith("wiki:")) { State.state = new State(undefined); document.getElementById("messagesboxmobile").remove(); new MoreScreen(true) - .SetStyle("background: var(--background-color); display: block; margin-left: 5vw; margin-right: 5vw; pointer-events: all;") + .SetStyle("pointer-events: all;") .AttachTo("topleft-tools"); - } window.addEventListener('contextmenu', function (e) { // Not compatible with IE < 9 e.preventDefault();