From 0d5a35f2379706cf357f3223d4aff542014163b8 Mon Sep 17 00:00:00 2001 From: Marc Durdin Date: Wed, 27 Jan 2021 15:04:45 +1100 Subject: [PATCH] fix(windows): Splash button sizes Fixes #4265. This adjusts the button sizes of the splash screen to accommodate longer strings such as found in the Khmer translation. We could go to a more flexible layout model to allow for the buttons to stretch as needed, but that's a lot more work and I don't really want to try for that right now. --- windows/src/desktop/kmshell/xml/splash.css | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/windows/src/desktop/kmshell/xml/splash.css b/windows/src/desktop/kmshell/xml/splash.css index cb8795a5eb..e54e393413 100644 --- a/windows/src/desktop/kmshell/xml/splash.css +++ b/windows/src/desktop/kmshell/xml/splash.css @@ -50,7 +50,11 @@ div { } #version { - position: absolute; font-size: 0.8em; right: 90px; bottom: 10px; color: #F68924 + position: absolute; + font-size: 0.8em; + right: 120px; + bottom: 10px; + color: #F68924; } #beta { @@ -66,7 +70,7 @@ div { height: 84px; max-height: 84px; overflow-y: auto; - width: 400px; + width: 360px; padding: 0 16px 0 0; } @@ -143,18 +147,28 @@ a.button { #tasks div { margin-bottom: 2px; margin-left: 4px } #startNow { - left: 434px; + right: 12px; top: 332px; height: 1.2em; } +#startNow .btn, +#config .btn { + width: 180px; + text-overflow: ellipsis; +} + #config { - left: 434px; + right: 12px; top: 372px; } #exit { right: 12px; bottom: 12px; } +#exit .btn-small { + width: 90px; +} + #tasks div#showAtStartupBox { margin-top: 6px; margin-left: 0; } #tasks a, #showAtStartupLabel { color: #F68924; text-decoration: none; } #tasks a:hover { text-decoration: underline; }