From fd9095f6549b1dbdd3c8edf5ffd76fd221e02d54 Mon Sep 17 00:00:00 2001 From: Yanzhen Yu Date: Fri, 28 Feb 2020 16:41:50 +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`, }); }, },