Hide chat scrollbar when not needed & Always optimize scrypt crate

This commit is contained in:
Matéo Duparc 2021-06-04 12:34:52 +02:00
parent dc9fde39be
commit 496c115fa9
Signed by: hardcoresushi
GPG Key ID: 007F84120107191E
3 changed files with 7 additions and 5 deletions

View File

@ -43,3 +43,6 @@ yaml-rust = "0.4" #only in debug mode
html-minifier = "3.0"
yaml-rust = "0.4"
linked-hash-map = "0.5"
[profile.dev.package.scrypt]
opt-level = 3

View File

@ -255,7 +255,8 @@ button:hover::after {
#left_panel ul li.is_verified p::after {
content: url("/static/imgs/icons/verified/ACCENT_COLOR");
}
#left_panel ul li .not_seen_marker {
#left_panel ul li.not_seen::after {
content: "";
width: 12px;
height: 12px;
background-color: var(--accent);
@ -407,7 +408,7 @@ button:hover::after {
margin-bottom: 0;
}
#msg_log {
overflow-y: scroll;
overflow-y: auto;
white-space: pre-wrap;
}
#msg_log p {

View File

@ -1002,9 +1002,7 @@ function generateSession(sessionId, session) {
li.classList.add("is_verified");
}
if (!session.seen) {
let marker = document.createElement("div");
marker.classList.add("not_seen_marker");
li.appendChild(marker);
li.classList.add("not_seen");
}
if (sessionId == currentSessionId) {
li.classList.add("current");