From 41da54a27c13e85ac18e05f3df713b3c35470e46 Mon Sep 17 00:00:00 2001 From: redphx <96280+redphx@users.noreply.github.com> Date: Mon, 8 Jan 2024 08:54:06 +0700 Subject: [PATCH] Add server name to the loading screen --- better-xcloud.user.js | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/better-xcloud.user.js b/better-xcloud.user.js index 46ce098..b049376 100644 --- a/better-xcloud.user.js +++ b/better-xcloud.user.js @@ -3205,10 +3205,12 @@ class LoadingScreen { let $waitTimeBox = LoadingScreen.#$waitTimeBox; if (!$waitTimeBox) { $waitTimeBox = CE('div', {'class': 'bx-wait-time-box'}, + CE('label', {}, __('server')), + CE('span', {}, getPreferredServerRegion()), CE('label', {}, __('wait-time-estimated')), - $estimated = CE('span', {'class': 'bx-wait-time-estimated'}), + $estimated = CE('span', {}), CE('label', {}, __('wait-time-countdown')), - $countDown = CE('span', {'class': 'bx-wait-time-countdown'}), + $countDown = CE('span', {}), ); document.documentElement.appendChild($waitTimeBox); @@ -8143,15 +8145,16 @@ div[class*=StreamMenu-module__menuContainer] > div[class*=Menu-module] { margin: 0; } -.bx-wait-time-estimated, .bx-wait-time-countdown { +.bx-wait-time-box span { display: block; font-family: var(--bx-monospaced-font); text-align: right; font-size: 16px; + margin-bottom: 10px; } -.bx-wait-time-estimated { - margin-bottom: 10px; +.bx-wait-time-box span:last-of-type { + margin-bottom: 0; } /* REMOTE PLAY */