diff --git a/shared/css/static/frame-chat.scss b/shared/css/static/frame-chat.scss index e7e07b1d..ada40851 100644 --- a/shared/css/static/frame-chat.scss +++ b/shared/css/static/frame-chat.scss @@ -401,10 +401,14 @@ $client_info_avatar_size: 10em; flex-shrink: 1; } - .messages { + .container-messages { @include user-select(none); display: block; + &[data-simplebar] { + display: flex; + } + position: relative; flex-grow: 0; @@ -566,6 +570,7 @@ $client_info_avatar_size: 10em; flex-grow: 1; flex-shrink: 0; min-height: calc(1.5em + 10px); + height: auto; /* fallback */ height: min-content; display: flex; @@ -733,6 +738,7 @@ $client_info_avatar_size: 10em; justify-content: stretch; position: relative; + overflow: hidden; flex-grow: 1; flex-shrink: 1; @@ -756,11 +762,15 @@ $client_info_avatar_size: 10em; flex-shrink: 1; display: block; + &[data-simplebar] { + display: flex; + } position: relative; overflow-y: auto; overflow-x: hidden; + @include chat-scrollbar(); min-height: 2em; @@ -906,7 +916,6 @@ $client_info_avatar_size: 10em; } } - @include chat-scrollbar(); } .new-message { diff --git a/shared/css/static/mixin.scss b/shared/css/static/mixin.scss index 018a90ed..71a768a4 100644 --- a/shared/css/static/mixin.scss +++ b/shared/css/static/mixin.scss @@ -67,32 +67,15 @@ } @mixin chat-scrollbar() { - & { - /* for moz */ - scrollbar-color: #353535 #555; - } - - &::-webkit-scrollbar-track { - //-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3); - border-radius: .25em; - background-color: transparent; - } - - &::-webkit-scrollbar { - width: .5em; - background-color: transparent; - } - - &::-webkit-scrollbar-thumb { - border-radius: .25em; - //-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,.3); - background-color: #555; - } + //We've currently no difference + @include chat-scrollbar-vertical(); + //@include chat-scrollbar-horizontal(); } @mixin chat-scrollbar-vertical() { + /* & { - /* for moz */ + // for moz scrollbar-color: #353535 #555; scrollbarWidth: .5em; } @@ -115,11 +98,28 @@ //-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,.3); background-color: #555; } + */ + + & > .simplebar-track { + .simplebar-scrollbar { + &:before { + background: #555; + width: .5em; + left: unset; + right: unset; + border-radius: .25em; + } + &.simplebar-visible:before { + opacity: 1; + } + } + } } @mixin chat-scrollbar-horizontal() { + /* & { - /* for moz */ + // MOZ scrollbar-color: #353535 #555; scrollbarWidth: .5em; } @@ -142,6 +142,7 @@ //-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,.3); background-color: #555; } + */ } @mixin text-dotdotdot() { diff --git a/shared/html/templates.html b/shared/html/templates.html index dcbd1b3e..ab3233f8 100644 --- a/shared/html/templates.html +++ b/shared/html/templates.html @@ -284,7 +284,7 @@