From c721d471820b5ea7291ab60f2bebe11a4ed414d3 Mon Sep 17 00:00:00 2001 From: Sophia Mersmann Date: Tue, 17 Dec 2024 10:57:44 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20ensure=20full-screen=20mode=20ca?= =?UTF-8?q?n=20be=20exited=20(#4321)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/@ourworldindata/grapher/src/core/Grapher.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/@ourworldindata/grapher/src/core/Grapher.tsx b/packages/@ourworldindata/grapher/src/core/Grapher.tsx index ecc0acf19bd..8306e96069e 100644 --- a/packages/@ourworldindata/grapher/src/core/Grapher.tsx +++ b/packages/@ourworldindata/grapher/src/core/Grapher.tsx @@ -2419,6 +2419,7 @@ export class Grapher } @computed get hideFullScreenButton(): boolean { + if (this.isInFullScreenMode) return false // hide the full screen button if the full screen height // is barely larger than the current chart height const fullScreenHeight = this.windowInnerHeight!