From cb03cbf81ac967860043d3f1a822ecfc8a8eaa99 Mon Sep 17 00:00:00 2001 From: Nagaraj Devendhiran Date: Fri, 1 Mar 2024 14:12:45 +0100 Subject: [PATCH 1/2] 32 - Review comments addressed --- scripts/scripts.js | 2 +- styles/styles.css | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/scripts.js b/scripts/scripts.js index b47729b..c58c982 100644 --- a/scripts/scripts.js +++ b/scripts/scripts.js @@ -70,7 +70,7 @@ async function prepareSpecification() { if (specificationsObj.Range) { addSpeedInformation(specificationsObj.Range, infoContainer); // Temp content as it is not received from document - addSpeedInformation(specificationsObj['Number of Passengers'].replace('to', '-'), infoContainer, 'Passengers', true); + addSpeedInformation(specificationsObj['Number of Passengers'].replace('to', '–'), infoContainer, 'passengers', true); addSpeedInformation(specificationsObj.Length, infoContainer); } diff --git a/styles/styles.css b/styles/styles.css index a987dac..6653a8b 100644 --- a/styles/styles.css +++ b/styles/styles.css @@ -356,7 +356,6 @@ main .section.highlight { font-size: 15px; line-height: 24px; padding-left: 5px; - vertical-align: super; } .default-content-wrapper .info { From 089b01a114d196c28edf2ddcd68177e7821fe48f Mon Sep 17 00:00:00 2001 From: Nagaraj Devendhiran Date: Fri, 1 Mar 2024 14:47:45 +0100 Subject: [PATCH 2/2] 32 - Removed spaces --- scripts/scripts.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/scripts.js b/scripts/scripts.js index c58c982..8f91b3b 100644 --- a/scripts/scripts.js +++ b/scripts/scripts.js @@ -70,7 +70,7 @@ async function prepareSpecification() { if (specificationsObj.Range) { addSpeedInformation(specificationsObj.Range, infoContainer); // Temp content as it is not received from document - addSpeedInformation(specificationsObj['Number of Passengers'].replace('to', '–'), infoContainer, 'passengers', true); + addSpeedInformation(specificationsObj['Number of Passengers'].replace('to', '–').replaceAll(' ', ''), infoContainer, 'passengers', true); addSpeedInformation(specificationsObj.Length, infoContainer); }