From 1a6bd7a5f84e139a385c5fe1e98bf4a92de63314 Mon Sep 17 00:00:00 2001 From: Yanzhen Yu Date: Wed, 1 Apr 2026 12:00:00 +0800 Subject: [PATCH] fix logic operator --- src/Player.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Player.html b/src/Player.html index 777f8c41..894a8f5d 100644 --- a/src/Player.html +++ b/src/Player.html @@ -51,7 +51,7 @@ playerStyle({ width, height, showController }) { return inlineCss({ width: `${width}px`, - height: `${height + showController ? controllerHeight : 0}px`, + height: `${height + (showController ? controllerHeight : 0)}px`, }); }, },