From 1eb87a0724aa5caa105152eb38c0e154221a5328 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Wed, 19 Jul 2023 14:20:59 +0200 Subject: [PATCH] Add a default value for the x offset of legacy dialogs The lack of a valid value sometimes caused the dialog to be squished against the side of the document, causing an incorrect width calculation. --- wcfsetup/install/files/style/ui/dialog.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/style/ui/dialog.scss b/wcfsetup/install/files/style/ui/dialog.scss index 09204cbbed..fa90abe547 100644 --- a/wcfsetup/install/files/style/ui/dialog.scss +++ b/wcfsetup/install/files/style/ui/dialog.scss @@ -71,7 +71,7 @@ // this causes a blurry text rendering in Chromium. // The offset is calculated using a `ResizeObserver`. left: 50%; - transform: translateX(var(--translate-x)) translateY(-50%); + transform: translateX(var(--translate-x, 0)) translateY(-50%); &[aria-hidden="false"] { animation: wcfDialog 0.24s; -- 2.20.1