More UI update
This commit is contained in:
2 files changed
+32
-5
No files matched your search
@@ -6,6 +6,19 @@
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar {
|
||||
height: 10px;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-thumb {
|
||||
background: rgb(255 255 255 / 0.5);
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-thumb:hover {
|
||||
background: rgb(255 255 255/1);
|
||||
}
|
||||
|
||||
main {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
@@ -266,16 +279,20 @@ section.user__cont {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
overflow: auto hidden;
|
||||
height: 50vh;
|
||||
}
|
||||
|
||||
.user__card {
|
||||
width: 50%;
|
||||
overflow: hidden;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.user__card .content {
|
||||
display: flex;
|
||||
flex-shrink: 0;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
overflow: hidden;
|
||||
flex-flow: column-reverse;
|
||||
flex-flow: column;
|
||||
}
|
||||
|
||||
.user__svg,
|
||||
|
||||
+12
-2
@@ -16,10 +16,20 @@ const createUserList = () => {
|
||||
console.log(userlist);
|
||||
userlist.forEach(user => {
|
||||
if (user.PrimaryImageTag) {
|
||||
html = `<div class="user__card" data-user="${user.Name}" data-userid="${user.Id}" onclick="createEnterPassword(this.dataset.user, true, this.dataset.userid)"><h1>${user.Name}</h1><img class="user__img" src="${config.get('serverUrl')}/Users/${user.Id}/Images/Primary"></div>`;
|
||||
html = `<div class="user__card" data-user="${user.Name}" data-userid="${user.Id}" onclick="createEnterPassword(this.dataset.user, true, this.dataset.userid)">
|
||||
<div class="content">
|
||||
<img class="user__img" src="${config.get('serverUrl')}/Users/${user.Id}/Images/Primary">
|
||||
<h1>${user.Name}</h1>
|
||||
</div>
|
||||
</div>`;
|
||||
}
|
||||
else if (!user.PrimaryImageTag) {
|
||||
html = `<div class="user__card" data-user="${user.Name}" onclick="createEnterPassword(this.dataset.user, false)"><h1>${user.Name}</h1><img class="user__svg" src="../svg/avatar.svg"></div>`;
|
||||
html = `<div class="user__card" data-user="${user.Name}" onclick="createEnterPassword(this.dataset.user, false)">
|
||||
<div class="content">
|
||||
<img class="user__svg" src="../svg/avatar.svg">
|
||||
<h1>${user.Name}</h1>
|
||||
</div>
|
||||
</div>`;
|
||||
}
|
||||
document.querySelector('.user__cont').insertAdjacentHTML('beforeend', html);
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user