Skip to content

Commit 45f131f

Browse files
committed
No scrollbar for session list
1 parent d80f2fa commit 45f131f

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

src/gui/src/UI/UIWindowSessionList.js

+10-8
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,17 @@ async function UIWindowSessionList(options){
2828
return new Promise(async (resolve) => {
2929
let h = '';
3030
h += `<div style="margin:10px;">`;
31-
h += `<div class="loading">${i18n('signing_in')}</div>`
32-
h += `<div style="overflow-y: scroll; max-width: 400px; margin: 0 auto;">`;
33-
h += `<h1 style="text-align: center; font-size: 18px; font-weight: normal; color: #757575;"><img src="${window.icons['logo-white.svg']}" style="padding: 4px; background-color: blue; border-radius: 5px; width: 25px; box-sizing: border-box; margin-bottom: -6px; margin-right: 6px;">${i18n('sign_in_with_puter')}</h1>`
34-
for (let index = 0; index < window.logged_in_users.length; index++) {
35-
const l_user = window.logged_in_users[index];
36-
h += `<div data-uuid="${l_user.uuid}" class="session-entry">${l_user.username}</div>`;
37-
}
31+
// loading indicator
32+
h += `<div class="loading">${i18n('signing_in')}</div>`;
33+
// session list
34+
h += `<div class="hide-scrollbar" style="overflow-y: scroll; max-width: 400px; margin: 0 auto;">`;
35+
h += `<h1 style="text-align: center; font-size: 18px; font-weight: normal; color: #757575;"><img src="${window.icons['logo-white.svg']}" style="padding: 4px; background-color: blue; border-radius: 5px; width: 25px; box-sizing: border-box; margin-bottom: -6px; margin-right: 6px;">${i18n('sign_in_with_puter')}</h1>`
36+
for (let index = 0; index < window.logged_in_users.length; index++) {
37+
const l_user = window.logged_in_users[index];
38+
h += `<div data-uuid="${l_user.uuid}" class="session-entry">${l_user.username}</div>`;
39+
}
3840
h += `</div>`;
39-
41+
// c2a
4042
h += `<div style="margin-top: 20px; margin-bottom: 20px; text-align:center;"><span class="login-c2a-session-list">Log Into Another Account</span> &bull; <span class="signup-c2a-session-list">${i18n('create_account')}</span></div>`;
4143
h += `</div>`;
4244

0 commit comments

Comments
 (0)