From 9686dc2ea5dbf0d95fdf7a87a81d8125fe7ce3b7 Mon Sep 17 00:00:00 2001 From: Marcel Schwarz Date: Fri, 8 Jan 2021 12:36:03 +0100 Subject: [PATCH] Adjust styling and wording in some places --- .../app/dashboard/dashboard.component.html | 2 +- .../frontend/src/app/map/map.component.html | 2 +- .../frontend/src/app/map/map.component.scss | 4 ++++ .../src/app/map/pop-up/pop-up.component.html | 19 +++++++------------ .../frontend/src/app/service/map.service.ts | 6 +++--- projects/project-3/frontend/src/styles.scss | 6 +++++- 6 files changed, 21 insertions(+), 18 deletions(-) diff --git a/projects/project-3/frontend/src/app/dashboard/dashboard.component.html b/projects/project-3/frontend/src/app/dashboard/dashboard.component.html index 3f85bf0..4b176ae 100644 --- a/projects/project-3/frontend/src/app/dashboard/dashboard.component.html +++ b/projects/project-3/frontend/src/app/dashboard/dashboard.component.html @@ -1,6 +1,6 @@ - Bike Stations in London + - Bike Stations in London + - - - {{station?.commonName}} - + + + {{station?.commonName}} - -
+ +
-
- -
+
- - diff --git a/projects/project-3/frontend/src/app/service/map.service.ts b/projects/project-3/frontend/src/app/service/map.service.ts index 381aa74..c4ef9da 100644 --- a/projects/project-3/frontend/src/app/service/map.service.ts +++ b/projects/project-3/frontend/src/app/service/map.service.ts @@ -185,9 +185,9 @@ export class MapService { this.legend.onAdd = () => { const div = L.DomUtil.create('div', 'legend'); div.innerHTML += `

trips from/to bike station

`; - div.innerHTML += `rents with ${this.dashBoardBikePoint.commonName} as destination
`; - div.innerHTML += `rents with ${this.dashBoardBikePoint.commonName} as start
`; - div.innerHTML += `rents with ${this.dashBoardBikePoint.commonName} as destination and start`; + div.innerHTML += `inbound to ${this.dashBoardBikePoint.commonName}
`; + div.innerHTML += `outbound from ${this.dashBoardBikePoint.commonName}
`; + div.innerHTML += `in- and outbound traffic line`; return div; }; this.legend.addTo(this.miniMap); diff --git a/projects/project-3/frontend/src/styles.scss b/projects/project-3/frontend/src/styles.scss index e24de31..1a4c807 100644 --- a/projects/project-3/frontend/src/styles.scss +++ b/projects/project-3/frontend/src/styles.scss @@ -16,7 +16,11 @@ body { /* WTF ANGULAR!?!?!?! WHY DO I HAVE TO DO THIS? (see table.component.html@7 and table.component.html@50) */ label.mat-checkbox-layout { - margin: 0 !important; + margin: 0; +} + +#logo { + cursor: pointer; } .legend {