Skip to content

Commit

Permalink
Merge pull request #42 from vtex-apps/fix/truncated-delimiter
Browse files Browse the repository at this point in the history
Fix whitespace in delimiters truncated
  • Loading branch information
lucasecdb authored Feb 1, 2021
2 parents 1ddc880 + 943c5d6 commit 2314b30
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [Unreleased]
### Fixed
- Whitespace truncated in address fields delimiters.

## [0.13.9] - 2021-01-08
### Fixed
Expand Down
8 changes: 6 additions & 2 deletions react/PlaceDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,15 @@ const PlaceDetails: React.FC<Props> = ({
return (
<div className="dib" key={fragment.name}>
{fragment.delimiter && hasPreviousFragment && (
<span>{fragment.delimiter}</span>
<span style={{ whiteSpace: 'pre-wrap' }}>
{fragment.delimiter}
</span>
)}
<span className={fragment.name}>{addressValue}</span>
{fragment.delimiterAfter && shouldShowDelimiter && (
<span>{fragment.delimiterAfter}</span>
<span style={{ whiteSpace: 'pre-wrap' }}>
{fragment.delimiterAfter}
</span>
)}
</div>
)
Expand Down

0 comments on commit 2314b30

Please sign in to comment.