# HG changeset patch # User Sascha L. Teichmann # Date 1626366977 -7200 # Node ID 901741aa16788ab4870f04c2082a4cf4bd35f384 # Parent d45d5fafdc5b8e2e2d672470d0cf6ffc2afe489b# Parent d6a547f3af71a4daa2db0a15744d6a6550d29b8c Merged uiimprovements branch into default. diff -r d45d5fafdc5b -r 901741aa1678 client/src/components/App.vue --- a/client/src/components/App.vue Thu Jul 15 18:15:08 2021 +0200 +++ b/client/src/components/App.vue Thu Jul 15 18:36:17 2021 +0200 @@ -2,7 +2,7 @@
-
+
diff -r d45d5fafdc5b -r 901741aa1678 client/src/components/Bottlenecks.vue --- a/client/src/components/Bottlenecks.vue Thu Jul 15 18:15:08 2021 +0200 +++ b/client/src/components/Bottlenecks.vue Thu Jul 15 18:36:17 2021 +0200 @@ -13,12 +13,12 @@ title: `${countryLabel}`, width: '100px' }, + { id: 'properties.from', title: `${chainageLabel}`, width: '155px' }, { id: 'properties.current', title: `${latestmeasurementLabel}`, width: '150px' - }, - { id: 'properties.from', title: `${chainageLabel}`, width: '135px' } + } ]" />
- {{ bottleneck.properties.responsible_country }} + {{ + bottleneck.properties.responsible_country + }}
-
- {{ bottleneck.properties.current | surveyDate }} -
-
- {{ +
+ {{ displayCurrentChainage( bottleneck.properties.from, bottleneck.properties.to ) - }} + }}
-
+
+ {{ + bottleneck.properties.current | surveyDate + }}
- + - - - - + + + + - +
@@ -47,7 +65,10 @@ "ui-element shadow-xs contextbox", { contextboxcollapsed: !this.showContextBox, - contextboxextended: this.showContextBox, + contextboxextended: + this.showContextBox && this.contextBoxContent !== "bottlenecks", + contextboxbottlenecks: + this.showContextBox && this.contextBoxContent === "bottlenecks", "rounded-bottom": this.contextBoxContent !== "imports", rounded: this.contextBoxContent === "imports" } @@ -79,9 +100,6 @@ overflow: hidden; background: #fff; } -.contextbox > div:last-child { - width: 860px; -} .contextboxcollapsed { max-width: 0; @@ -89,7 +107,15 @@ } .contextboxextended { - max-width: 860px; + max-width: 858px; + transition: 0.1s; + transition-timing-function: ease; +} + +.contextboxbottlenecks { + max-width: 650px; + transition: 0.1s; + transition-timing-function: ease; } .close-contextbox { diff -r d45d5fafdc5b -r 901741aa1678 client/src/components/KeyboardHandler.vue --- a/client/src/components/KeyboardHandler.vue Thu Jul 15 18:15:08 2021 +0200 +++ b/client/src/components/KeyboardHandler.vue Thu Jul 15 18:36:17 2021 +0200 @@ -1,7 +1,7 @@ @@ -70,28 +70,37 @@ } } }, + methods: { + closeCompareView() { + this.$store.commit("fairwayprofile/additionalSurvey", null); + }, + stopDrawing() { + this.$store.commit("map/lineToolEnabled", false); + this.$store.commit("map/polygonToolEnabled", false); + this.$store.commit("map/cutToolEnabled", false); + this.$store.commit("map/setCurrentMeasurement", null); + this.openLayersMaps.forEach(m => { + m.getLayer("DRAWTOOL") + .getSource() + .clear(); + }); + }, + stopOperation() { + if ( + this.lineToolEnabled || + this.polygonToolEnabled || + this.cutToolEnabled + ) { + this.stopDrawing(); + } else if (this.paneSetup.includes("COMPARESURVEYS")) { + this.closeCompareView(); + } + } + }, mounted() { window.addEventListener("keydown", e => { // Escape - if (e.keyCode === 27) { - if ( - this.lineToolEnabled || - this.polygonToolEnabled || - this.cutToolEnabled - ) { - this.$store.commit("map/lineToolEnabled", false); - this.$store.commit("map/polygonToolEnabled", false); - this.$store.commit("map/cutToolEnabled", false); - this.$store.commit("map/setCurrentMeasurement", null); - this.openLayersMaps.forEach(m => { - m.getLayer("DRAWTOOL") - .getSource() - .clear(); - }); - } else if (this.paneSetup.includes("COMPARESURVEYS")) { - this.$store.commit("fairwayprofile/additionalSurvey", null); - } - } + if (e.key === "Esc" || e.key === "Escape") this.stopOperation(); }); } }; diff -r d45d5fafdc5b -r 901741aa1678 client/src/components/Pdftool.vue --- a/client/src/components/Pdftool.vue Thu Jul 15 18:15:08 2021 +0200 +++ b/client/src/components/Pdftool.vue Thu Jul 15 18:36:17 2021 +0200 @@ -334,7 +334,6 @@ this.generatePDF(soundingInfo); }) .catch(error => { - // console.log(error); let message = "Backend not reachable"; if (error.response) { const { status, data } = error.response; diff -r d45d5fafdc5b -r 901741aa1678 client/src/components/Search.vue --- a/client/src/components/Search.vue Thu Jul 15 18:15:08 2021 +0200 +++ b/client/src/components/Search.vue Thu Jul 15 18:36:17 2021 +0200 @@ -9,6 +9,10 @@ :class="[ 'searchgroup', { + searchgroupwidthbottlenecks: + this.showSearchbar && this.contextBoxContent === 'bottlenecks', + sgnobottlenecks: + this.showSearchbar && this.contextBoxContent !== 'bottlenecks', 'searchgroup-collapsed': !showSearchbar, big: showContextBox && @@ -85,7 +89,36 @@