Skip to content

Commit

Permalink
fix: whitespaces instead of dots in terminal
Browse files Browse the repository at this point in the history
  • Loading branch information
benstov authored and eysi09 committed Mar 27, 2019
1 parent 3b78b52 commit f6445c7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions dashboard/src/components/terminal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,13 @@ const Timestamp = styled.span`
color: ${colors.gardenGrayLight};
`

// FIXME Use whitespace instead of dots for the sectinon padding.
// For some reason whitespace is not rendered inside spans.
const Terminal: React.SFC<Props> = ({ entries, sectionPad, showServiceName }) => {
return (
<Term className="p-1">
<code>
{entries.map((e, idx) => {
const service = showServiceName
? <Service>{padEnd(e.serviceName, sectionPad + 3, ".")}</Service>
? <Service>{padEnd(e.serviceName, sectionPad + 3, "\u00A0")}</Service>
: ""
return (
<P key={idx}>
Expand Down

0 comments on commit f6445c7

Please sign in to comment.