Add server name to the loading screen

This commit is contained in:
redphx 2024-01-08 08:54:06 +07:00
parent 649bb0452d
commit 41da54a27c

View File

@ -3205,10 +3205,12 @@ class LoadingScreen {
let $waitTimeBox = LoadingScreen.#$waitTimeBox; let $waitTimeBox = LoadingScreen.#$waitTimeBox;
if (!$waitTimeBox) { if (!$waitTimeBox) {
$waitTimeBox = CE('div', {'class': 'bx-wait-time-box'}, $waitTimeBox = CE('div', {'class': 'bx-wait-time-box'},
CE('label', {}, __('server')),
CE('span', {}, getPreferredServerRegion()),
CE('label', {}, __('wait-time-estimated')), CE('label', {}, __('wait-time-estimated')),
$estimated = CE('span', {'class': 'bx-wait-time-estimated'}), $estimated = CE('span', {}),
CE('label', {}, __('wait-time-countdown')), CE('label', {}, __('wait-time-countdown')),
$countDown = CE('span', {'class': 'bx-wait-time-countdown'}), $countDown = CE('span', {}),
); );
document.documentElement.appendChild($waitTimeBox); document.documentElement.appendChild($waitTimeBox);
@ -8143,15 +8145,16 @@ div[class*=StreamMenu-module__menuContainer] > div[class*=Menu-module] {
margin: 0; margin: 0;
} }
.bx-wait-time-estimated, .bx-wait-time-countdown { .bx-wait-time-box span {
display: block; display: block;
font-family: var(--bx-monospaced-font); font-family: var(--bx-monospaced-font);
text-align: right; text-align: right;
font-size: 16px; font-size: 16px;
margin-bottom: 10px;
} }
.bx-wait-time-estimated { .bx-wait-time-box span:last-of-type {
margin-bottom: 10px; margin-bottom: 0;
} }
/* REMOTE PLAY */ /* REMOTE PLAY */