Skip to content

Commit

Permalink
fix(grapher): remove extra line below subtitle
Browse files Browse the repository at this point in the history
  • Loading branch information
sophiamersmann committed Oct 16, 2023
1 parent 3a28913 commit 071fdd6
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 071fdd6

Please sign in to comment.