Merge master
This commit is contained in:
commit
149e117887
11 changed files with 44 additions and 63 deletions
|
@ -38,7 +38,7 @@ export default class AllTranslationAssets {
|
|||
returnToTheMap: new Translation( {"en":"Return to the map","ca":"Tornar al mapa","es":"Volver al mapa","nl":"Naar de kaart","fr":"Retourner sur la carte","gl":"Voltar ó mapa","de":"Zurück zur Karte"} ),
|
||||
save: new Translation( {"en":"Save","ca":"Desar","es":"Guardar","nl":"Opslaan","fr":"Sauvegarder","gl":"Gardar","de":"Speichern"} ),
|
||||
cancel: new Translation( {"en":"Cancel","ca":"Cancel·lar","es":"Cancelar","nl":"Annuleren","fr":"Annuler","gl":"Desbotar","de":"Abbrechen"} ),
|
||||
skip: new Translation( {"en":"Skip this question","ca":"Saltar aquesta pregunta","es":"Saltar esta pregunta","nl":"Vraag overslaan","fr":"Passer la question","gl":"Ignorar esta pregunta","de":"Diese Frage überspringen"} ),
|
||||
skip: new Translation( {"en":"Skip this question","ca":"Saltar aquesta pregunta","es":"Saltar esta pregunta","nl":"Vraag overslaan","fr":"Passer la question","gl":"Ignorar esta pregunta","de":"Frage überspringen"} ),
|
||||
oneSkippedQuestion: new Translation( {"en":"One question is skipped","ca":"Has ignorat una pregunta","es":"Has ignorado una pregunta","nl":"Een vraag is overgeslaan","fr":"Une question a été passée","gl":"Ignoraches unha pregunta","de":"Eine Frage wurde übersprungen"} ),
|
||||
skippedQuestions: new Translation( {"en":"Some questions are skipped","ca":"Has ignorat algunes preguntes","es":"Has ignorado algunas preguntas","nl":"Sommige vragen zijn overgeslaan","fr":"Questions passées","gl":"Ignoraches algunhas preguntas","de":"Einige Fragen wurden übersprungen"} ),
|
||||
number: new Translation( {"en":"number","ca":"nombre","es":"número","nl":"getal","fr":"nombre","gl":"número","de":"Zahl"} ),
|
||||
|
|
|
@ -97,7 +97,7 @@ export default class ScrollableFullScreen extends UIElement {
|
|||
}
|
||||
|
||||
private static PatchLeaflet(htmlElement) {
|
||||
if(htmlElement === null){
|
||||
if(htmlElement === undefined || htmlElement === null){
|
||||
return;
|
||||
}
|
||||
do {
|
||||
|
@ -141,8 +141,9 @@ export default class ScrollableFullScreen extends UIElement {
|
|||
}
|
||||
|
||||
public PrepFullscreen(htmlElement = undefined) {
|
||||
htmlElement = htmlElement ?? document.getElementById(this.id);
|
||||
ScrollableFullScreen.PatchLeaflet(htmlElement);
|
||||
|
||||
htmlElement = htmlElement ?? document.getElementById(this.id);
|
||||
ScrollableFullScreen.HideClutter(htmlElement);
|
||||
|
||||
}
|
||||
|
|
|
@ -74,7 +74,7 @@ export default class EditableTagRendering extends UIElement {
|
|||
// And at last, set up the skip button
|
||||
const cancelbutton =
|
||||
Translations.t.general.cancel.Clone()
|
||||
.SetClass("cancel")
|
||||
.SetClass("btn btn-secondary mr-3")
|
||||
.onClick(() => {
|
||||
self._editMode.setData(false)
|
||||
});
|
||||
|
|
|
@ -33,7 +33,7 @@ export default class QuestionBox extends UIElement {
|
|||
self._skippedQuestions.ping();
|
||||
},
|
||||
Translations.t.general.skip.Clone()
|
||||
.SetClass("cancel")
|
||||
.SetClass("btn btn-secondary mr-3")
|
||||
.onClick(() => {
|
||||
self._skippedQuestions.data.push(i);
|
||||
self._skippedQuestions.ping();
|
||||
|
|
|
@ -22,15 +22,14 @@ export class SaveButton extends UIElement {
|
|||
}
|
||||
|
||||
InnerRender(): string {
|
||||
let clss = "save";
|
||||
|
||||
if(this._userDetails != undefined && !this._userDetails.data.loggedIn){
|
||||
return this._friendlyLogin.Render();
|
||||
}
|
||||
let inactive_class = ''
|
||||
if (this._value.data === false || (this._value.data ?? "") === "") {
|
||||
clss = "save-non-active";
|
||||
inactive_class = "btn-disabled";
|
||||
}
|
||||
return Translations.t.general.save.Clone().SetClass(clss).Render();
|
||||
return Translations.t.general.save.Clone().SetClass(`btn ${inactive_class}`).Render();
|
||||
}
|
||||
|
||||
}
|
|
@ -148,7 +148,7 @@ export default class ShowDataLayer {
|
|||
leafletLayer.on("click", () => {
|
||||
// We set the element as selected...
|
||||
|
||||
uiElement.Activate(e => e.PrepFullscreen());
|
||||
uiElement.Activate();
|
||||
State.state.selectedElement.setData(feature);
|
||||
});
|
||||
|
||||
|
|
|
@ -283,7 +283,7 @@
|
|||
"nl": "Vraag overslaan",
|
||||
"fr": "Passer la question",
|
||||
"gl": "Ignorar esta pregunta",
|
||||
"de": "Diese Frage überspringen"
|
||||
"de": "Frage überspringen"
|
||||
},
|
||||
"oneSkippedQuestion": {
|
||||
"en": "One question is skipped",
|
||||
|
|
|
@ -114,9 +114,6 @@
|
|||
display: block ruby;
|
||||
}
|
||||
|
||||
.review-form .save-non-active {
|
||||
display: block ruby;
|
||||
}
|
||||
.review-form textarea {
|
||||
resize: unset;
|
||||
}
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
@media only screen and (max-height: 600px) and (min-width: 600px) {
|
||||
/* landscape mode: the first tagrendering of the infobox gets a special treatment and is placed on the right*/
|
||||
.landscape\:max-h-screen {
|
||||
|
@ -84,25 +83,6 @@ input:checked + label .question-option-with-border {
|
|||
border: 2px solid var(--subtle-detail-color-contrast);
|
||||
}
|
||||
|
||||
|
||||
.save {
|
||||
display: inline-block;
|
||||
border: solid var(--catch-detail-color-contrast) 2px;
|
||||
background-color: var(--catch-detail-color);
|
||||
color: var(--catch-detail-color-contrast);
|
||||
padding: 0.2em 0.6em;
|
||||
font-size: x-large;
|
||||
font-weight: bold;
|
||||
border-radius: 1.5em;
|
||||
}
|
||||
|
||||
.cancel {
|
||||
display: inline-block;
|
||||
border: solid black 0.5px;
|
||||
padding: 0.2em 0.3em;
|
||||
border-radius: 1.5em;
|
||||
}
|
||||
|
||||
.login-button-friendly {
|
||||
display: inline-block;
|
||||
background-color: var(--catch-detail-color);
|
||||
|
@ -116,16 +96,6 @@ input:checked + label .question-option-with-border {
|
|||
width: 100%;
|
||||
}
|
||||
|
||||
.save-non-active {
|
||||
display: inline-block;
|
||||
border: solid lightgrey 2px;
|
||||
color: grey;
|
||||
padding: 0.2em 0.3em;
|
||||
font-size: x-large;
|
||||
font-weight: bold;
|
||||
border-radius: 1.5em;
|
||||
}
|
||||
|
||||
.edit-button img {
|
||||
width: 1.3em;
|
||||
height: 1.3em;
|
||||
|
|
24
index.css
24
index.css
|
@ -16,22 +16,32 @@
|
|||
z-index: 10000
|
||||
}
|
||||
|
||||
.z-above-map-higher {
|
||||
z-index: 10100
|
||||
}
|
||||
|
||||
.z-above-map-high {
|
||||
z-index: 10200 !important;
|
||||
.btn {
|
||||
@apply inline-flex justify-center;
|
||||
@apply py-2 px-4;
|
||||
@apply border border-transparent shadow-sm;
|
||||
@apply shadow-sm rounded-3xl;
|
||||
@apply ring-2 ring-blue-200 hover:ring-blue-300;
|
||||
@apply mt-1 mr-1;
|
||||
@apply text-sm font-medium text-white;
|
||||
@apply bg-blue-600 hover:bg-blue-700;
|
||||
@apply focus:outline-none focus:ring-blue-700;
|
||||
}
|
||||
|
||||
.z-above-map-highest{
|
||||
z-index: 50000
|
||||
.btn-secondary {
|
||||
@apply bg-gray-600 hover:bg-gray-700;
|
||||
}
|
||||
|
||||
.btn-disabled {
|
||||
@apply bg-gray-500 hover:bg-gray-500;
|
||||
@apply text-gray-300;
|
||||
@apply ring-gray-200 hover:ring-gray-200 focus:ring-gray-200;
|
||||
@apply cursor-default;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@media only screen and (max-width: 640px) {
|
||||
.no-transform {
|
||||
/*This is a workaround to let popup contents escape the popup on mobile - see scrollableFullScreen.ts*/
|
||||
|
|
|
@ -6,15 +6,19 @@ module.exports = {
|
|||
darkMode: false, // or 'media' or 'class'
|
||||
theme: {
|
||||
extend: {
|
||||
// This does not work and I don't know why.
|
||||
// Luckily index.css "@layer utilities" has the same effekt.
|
||||
// maxHeight: {
|
||||
// '65vh': '65vh',
|
||||
// },
|
||||
maxHeight: {
|
||||
'65vh': '65vh',
|
||||
'20vh': '20vh',
|
||||
},
|
||||
screens: {
|
||||
'landscape': { 'raw': '(max-height: 600px) and (min-width: 600px)' },
|
||||
},
|
||||
},
|
||||
},
|
||||
variants: {
|
||||
extend: {},
|
||||
extend: {
|
||||
ringColor: ['hover'],
|
||||
}
|
||||
},
|
||||
plugins: [],
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue