From bf5cf2b1b2e16efbcfb4876163a50e2a3ac0f8ad Mon Sep 17 00:00:00 2001 From: yumoqing Date: Mon, 1 Jun 2026 16:09:05 +0800 Subject: [PATCH] fix: fullscreen targets dashboard container instead of entire page --- wwwroot/index.ui | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wwwroot/index.ui b/wwwroot/index.ui index d0f99c4..a9b6b06 100644 --- a/wwwroot/index.ui +++ b/wwwroot/index.ui @@ -1,6 +1,7 @@ {% set roles = get_user_roles(get_user()) %} { "widgettype": "VBox", + "id": "dashboard_root", "options": { "width": "100%", "height": "100%" @@ -55,7 +56,7 @@ "event": "click", "actiontype": "script", "target": "self", - "script": "if (!document.fullscreenElement) { document.documentElement.requestFullscreen(); } else { document.exitFullscreen(); }" + "script": "var el = document.getElementById('dashboard_root'); if (!document.fullscreenElement) { (el || document.documentElement).requestFullscreen(); } else { document.exitFullscreen(); }" } ] }