From 05a234843cc0b17549aa0ee88008234d2efedc07 Mon Sep 17 00:00:00 2001 From: Ross Date: Wed, 16 Aug 2023 14:52:10 +1000 Subject: [PATCH] fix(windows): allow qr box to grow to edge of default Allow QR box to grow if the caption box is bigger than the english text. Still limit this to 130px if it grows further than this then add a vertical scroll for the caption. In testing no language actually causes the scroll bar to be displayed. However using dummy text to test the overflow shows that it will handle this should the translation ever reach this length. --- windows/src/desktop/kmshell/xml/config.css | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/windows/src/desktop/kmshell/xml/config.css b/windows/src/desktop/kmshell/xml/config.css index f38c55a296..88c8d22b39 100644 --- a/windows/src/desktop/kmshell/xml/config.css +++ b/windows/src/desktop/kmshell/xml/config.css @@ -1136,7 +1136,7 @@ th position: fixed; display: none; width: 256px; - height: 324px; + height: auto; margin: -180px 0 0 -128px; left: 50%; top: 50%; @@ -1149,6 +1149,8 @@ th .qrcode .qrcode_caption { display: block; + max-height: 130px; + overflow-y: auto; white-space: normal; font-size: 12pt; padding: 8px;