Skip to content
This repository has been archived by the owner on Jun 3, 2024. It is now read-only.

QMAPS-1734 Add non breaking spaces before emojis #1095

Merged
merged 1 commit into from
May 28, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions src/panel/NoResultMessage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,12 @@ import React from 'react';
const NoResultMessage = () => {
return (
<>
<p className="u-center u-mb-xs u-text--smallTitle">
{_('Sorry, we could not find this place 🏝️', 'suggest')}
</p>
<p
className="u-center u-mb-xs u-text--smallTitle"
dangerouslySetInnerHTML={{
__html: _('Sorry, we could not find this place&nbsp;🏝️', 'suggest'),
}}
/>
<p className="u-center u-text--subtitle">
{_(
'Please try to correct your query or rewrite it with more details about the location (city, country, …)',
Expand Down
5 changes: 4 additions & 1 deletion src/panel/direction/RouteResult.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,10 @@ const RouteResult = ({
if (error !== 0) {
return (
<div className="itinerary_no-result">
<p className="u-mb-xs u-text--smallTitle u-center">{_("Ouch, we've lost the north 🧭")}</p>
<p
className="u-mb-xs u-text--smallTitle u-center"
dangerouslySetInnerHTML={{ __html: _("Ouch, we've lost the north&nbsp;🧭") }}
/>
<p className="u-text--subtitle u-mb-l u-center">
{error >= 500 && error < 600
? _('The service is temporarily unavailable, please try again later.', 'direction')
Expand Down