From 5bcc0fa3656430444917d99b7857e1d2cc6a7c15 Mon Sep 17 00:00:00 2001 From: webprofusion-chrisc Date: Fri, 25 Aug 2023 11:29:16 +0800 Subject: [PATCH] POI details UI updates --- .../components/poi-details/poi-details.html | 126 ++++++++++-------- .../components/poi-details/poi-details.scss | 9 -- 2 files changed, 73 insertions(+), 62 deletions(-) diff --git a/src/app/components/poi-details/poi-details.html b/src/app/components/poi-details/poi-details.html index b6e17ff9..9ebe9f47 100644 --- a/src/app/components/poi-details/poi-details.html +++ b/src/app/components/poi-details/poi-details.html @@ -46,10 +46,8 @@

- + @@ -59,7 +57,7 @@

Favourite - + Edit @@ -69,7 +67,7 @@

- + Navigate @@ -91,31 +89,32 @@

-
- - - - Details - - - - - Comments ({{poi.UserComments?poi.UserComments.length:0}}) - - - - Photos ({{poi.MediaItems?poi.MediaItems.length:0}}) - - -
-
+ + + + Details + + + + + Comments ({{poi.UserComments?poi.UserComments.length:0}}) + + + + Photos ({{poi.MediaItems?poi.MediaItems.length:0}}) + + + + +
- - {{ 'ocm.details.location.sectionTitle' | translate }} + + {{ 'ocm.details.location.sectionTitle' | translate }} + @@ -124,7 +123,7 @@

- + {{ 'ocm.details.location.address' | translate }}
@@ -172,11 +171,9 @@

- - - {{poi.AddressInfo.Latitude | number:'1.1-13'}} - , {{poi.AddressInfo.Longitude | number:'1.1-13'}} + Lat/Long: {{poi.AddressInfo.Latitude | number:'1.1-6'}} + , {{poi.AddressInfo.Longitude | number:'1.1-6'}} @@ -189,8 +186,9 @@

- - {{ 'ocm.details.equipment.sectionTitle' | translate }} + + {{ 'ocm.details.equipment.sectionTitle' | translate }} + @@ -206,7 +204,7 @@

- Usage Restrictions + Usage Restrictions

@@ -217,21 +215,25 @@

{{ 'ocm.details.usageType' | translate }}: - {{poi.UsageType.Title}}

+ {{poi.UsageType.Title}} +

{{ 'ocm.details.usageCost' | translate }}: - {{poi.UsageCost}}

+ {{poi.UsageCost}} +


{{ 'ocm.details.generalComments' | translate }}:
- {{poi.GeneralComments}}

+ {{poi.GeneralComments}} +

- - {{ 'ocm.details.operator.sectionTitle' | translate }} + + {{ 'ocm.details.operator.sectionTitle' | translate }} + @@ -247,7 +249,8 @@

{{poi.OperatorInfo.ContactEmail}}

-

+

{{poi.OperatorInfo.FaultReportEmail}}

@@ -257,7 +260,7 @@

- + {{ 'ocm.details.advancedDetails' | translate }} @@ -268,7 +271,8 @@

{{poi.DataProvider?.Title}}

- {{poi.DataProvider.WebsiteURL}} + {{poi.DataProvider.WebsiteURL}}

{{poi.DataProvider?.License}}

@@ -283,7 +287,7 @@

- + {{item.User.Username}} @@ -303,7 +307,8 @@

Rating: - {{item.Rating}} out of 5

+ {{item.Rating}} out of 5 +

@@ -318,9 +323,18 @@

-

- {{ 'ocm.details.commentsAndRatings.zeroComments' | translate }} -

+ + + + +

+ {{ 'ocm.details.commentsAndRatings.addPrompt' | translate }} +

+ + +
+
+

@@ -328,10 +342,10 @@

- + - + {{item.User.Username}} @@ -349,10 +363,16 @@

-
-

- {{ 'ocm.details.mediaItems.addPrompt' | translate }}

-
+ + + +

+ {{ 'ocm.details.mediaItems.addPrompt' | translate }} +

+
+
+
+

{{json}}

diff --git a/src/app/components/poi-details/poi-details.scss b/src/app/components/poi-details/poi-details.scss index 604e4965..55abc7d5 100644 --- a/src/app/components/poi-details/poi-details.scss +++ b/src/app/components/poi-details/poi-details.scss @@ -39,12 +39,3 @@ p { display: block; padding: 4px; } - -ion-card-header { - font-weight: bold; - padding-bottom: 0; -} - -ion-card-content { - padding-top: 4px; -}