4
1
mirror of https://github.com/Qortal/qortal-ui.git synced 2025-02-16 04:05:48 +00:00

Fixed redirect bug + added scrollbar to chatheads

This commit is contained in:
Justin Ferrari 2023-01-14 20:15:32 -05:00
parent 0c79113225
commit f547766ae3
2 changed files with 28 additions and 3 deletions

View File

@ -193,6 +193,23 @@ export const qchatStyles = css`
overflow-x: hidden; overflow-x: hidden;
} }
.people-list ul::-webkit-scrollbar-track {
background-color: whitesmoke;
border-radius: 7px;
}
.people-list ul::-webkit-scrollbar {
width: 6px;
border-radius: 7px;
background-color: whitesmoke;
}
.people-list ul::-webkit-scrollbar-thumb {
background-color: rgb(180, 176, 176);
border-radius: 7px;
transition: all 0.3s ease-in-out;
}
.chat { .chat {
width: 80vw; width: 80vw;
height: 100vh; height: 100vh;

View File

@ -97,6 +97,8 @@ class Chat extends LitElement {
} }
render() { render() {
console.log(12, "q-chat here");
console.log(window.location.href);
return html` return html`
<div class="container clearfix"> <div class="container clearfix">
<div class="people-list" id="people-list"> <div class="people-list" id="people-list">
@ -112,12 +114,14 @@ class Chat extends LitElement {
</ul> </ul>
<div class="blockedusers"> <div class="blockedusers">
<div class="groups-button-container"> <div class="groups-button-container">
<a href="/app/group-management"> <button
<button class="groups-button"> @click=${() => {
this.redirectToGroups();
}}
class="groups-button">
<mwc-icon>groups</mwc-icon> <mwc-icon>groups</mwc-icon>
${translate("sidemenu.groupmanagement")} ${translate("sidemenu.groupmanagement")}
</button> </button>
</a>
${this.groupInvites.length > 0 ? ( ${this.groupInvites.length > 0 ? (
html` html`
<div class="groups-button-notif"> <div class="groups-button-notif">
@ -463,6 +467,10 @@ class Chat extends LitElement {
} }
} }
redirectToGroups() {
window.location.href = `../../group-management/index.html`
}
setChatEditor(editor) { setChatEditor(editor) {
this.chatEditor = editor; this.chatEditor = editor;
} }