Skip to content

Commit

Permalink
Merge pull request #2768 from owid/fix-get-rid-of-extra-line-below-su…
Browse files Browse the repository at this point in the history
…btitle

fix(grapher): remove extra line below subtitle
  • Loading branch information
sophiamersmann authored Oct 16, 2023
2 parents 3a28913 + 071fdd6 commit fc2f6b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/@ourworldindata/grapher/src/header/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,11 @@ export class Header<
}

@computed protected get titleText(): string {
return this.manager.currentTitle ?? ""
return this.manager.currentTitle?.trim() ?? ""
}

@computed private get subtitleText(): string {
return this.manager.currentSubtitle ?? ""
return this.manager.currentSubtitle?.trim() ?? ""
}

@computed get logo(): Logo | undefined {
Expand Down

0 comments on commit fc2f6b2

Please sign in to comment.