From 6d2caaad5bcb2e6cc235f0fd8e87e5d75196c151 Mon Sep 17 00:00:00 2001 From: John Factotum <50942278+johnfactotum@users.noreply.github.com> Date: Sun, 26 Mar 2023 03:58:04 +0800 Subject: [PATCH] FXL: fix container, which should not span whole viewport --- fixed-layout.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fixed-layout.js b/fixed-layout.js index 38a144a..d39c010 100644 --- a/fixed-layout.js +++ b/fixed-layout.js @@ -40,8 +40,8 @@ class Container { #side constructor() { Object.assign(this.#element.style, { - width: '100vw', - height: '100vh', + width: '100%', + height: '100%', display: 'flex', justifyContent: 'center', alignItems: 'center',