From 06cf0eebce9b2e45b203786d1a776d526a0481da Mon Sep 17 00:00:00 2001 From: coderaiser Date: Fri, 1 Nov 2024 19:00:41 +0000 Subject: [PATCH] =?UTF-8?q?chore:=20cloudcmd:=20actions:=20lint=20?= =?UTF-8?q?=E2=98=98=EF=B8=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/client.js | 7 ++++--- css/query.css | 1 + 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/client/client.js b/client/client.js index 7786823e..f6394521 100644 --- a/client/client.js +++ b/client/client.js @@ -59,9 +59,10 @@ function CloudCmdProto(DOM) { this.prefixSocket = ''; this.prefixURL = ''; - var bodyStyle = getComputedStyle(document.body); - this.MIN_ONE_PANEL_WIDTH = bodyStyle.getPropertyValue("--min-one-panel-width"); - this.MOBILE_ONE_PANEL_WIDTH = bodyStyle.getPropertyValue('--mobile-max-width') + const bodyStyle = getComputedStyle(document.body); + + this.MIN_ONE_PANEL_WIDTH = bodyStyle.getPropertyValue('--min-one-panel-width'); + this.MOBILE_ONE_PANEL_WIDTH = bodyStyle.getPropertyValue('--mobile-max-width'); this.HOST = location.origin || location.protocol + '//' + location.host; diff --git a/css/query.css b/css/query.css index ee01e161..17639d71 100644 --- a/css/query.css +++ b/css/query.css @@ -23,6 +23,7 @@ --mobile-max-width: 600px; --min-one-panel-width: 1155px; } + @media only screen and (height <= 900px) and (width <= 600px) { .fm { height: 85%;