Skip to content

Commit

Permalink
🐛 (grapher) remove extra space on bottom
Browse files Browse the repository at this point in the history
  • Loading branch information
sophiamersmann committed May 20, 2024
1 parent 0e85ff4 commit a4f0bd2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export interface EntitySelectionManager {
entityTypePlural?: string
isEntitySelectorModalOrDrawerOpen?: boolean
isOnChartTab?: boolean
hideEntityControls?: boolean
}

interface EntitySelectionLabel {
Expand All @@ -35,7 +36,8 @@ export class EntitySelectionToggle extends React.Component<{
}

@computed get showToggle(): boolean {
const { isOnChartTab } = this.props.manager
const { isOnChartTab, hideEntityControls } = this.props.manager
if (hideEntityControls) return false
return !!(isOnChartTab && this.label)
}

Expand Down
1 change: 1 addition & 0 deletions packages/@ourworldindata/grapher/src/core/grapher.scss
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ $zindex-controls-drawer: 150;

.CaptionedChartAndSidePanel {
display: flex;
height: 100%;
}

// customize css of the <CodeSnippet> component
Expand Down

0 comments on commit a4f0bd2

Please sign in to comment.