Skip to content

Commit

Permalink
Hide all parts of footer with ?onlyPanels query
Browse files Browse the repository at this point in the history
The "data updated...", "download data", "powered by" content is actually
rendered by the `<FinePrint>` component not the `<Footer>`, but it is
conceptually part of the footer and should be hidden when using the
`onlyPanels` query.
  • Loading branch information
jameshadfield committed Jun 12, 2024
1 parent 223391a commit 9c7cd2e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* Tangletrees can now be coloured by genotype (previously such a colouring would only work for the LHS tree). This requires the genome annotation (in the dataset JSON) to be identical across both datasets. This can be especially useful when comparing trees generated from the same sequences or a similar set of sequences in order to understand the differences in tree structure. ([#1785](https://github.com/nextstrain/auspice/pull/1783))
* Bugfix: The legend entries shown for a tangletree may not have shown values only observed in the RHS tree when the dataset was first loaded. ([#1785](https://github.com/nextstrain/auspice/pull/1783))
* Bugfix: Multiple trees ("tanglegrams") now render correctly in Safari. ([#1786](https://github.com/nextstrain/auspice/pull/1786))
* Bugfix: The [onlyPanels](https://docs.nextstrain.org/projects/auspice/en/stable/advanced-functionality/view-settings.html#url-query-options) URL query now hides all parts of the footer, as intended. ([#1787](https://github.com/nextstrain/auspice/pull/1787))

## version 2.54.1 - 2024/06/10

Expand Down
2 changes: 1 addition & 1 deletion src/components/main/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ class Main extends React.Component {
null
}
{this.props.displayNarrative || this.props.showOnlyPanels ? null : <Footer width={calcUsableWidth(availableWidth, 1)} />}
{this.props.displayNarrative ? null : <FinePrint width={calcUsableWidth(availableWidth, 1)} />}
{this.props.displayNarrative || this.props.showOnlyPanels ? null : <FinePrint width={calcUsableWidth(availableWidth, 1)} />}
{this.props.displayNarrative && this.props.panelsToDisplay.includes("MainDisplayMarkdown") ?
<MainDisplayMarkdown width={calcUsableWidth(availableWidth, 1)}/> :
null
Expand Down

0 comments on commit 9c7cd2e

Please sign in to comment.