Commit 2c5cde05 authored by JC Brand's avatar JC Brand

CSS: fix bookmark indicator color and add title

parent c69a2abc
...@@ -60,6 +60,10 @@ ...@@ -60,6 +60,10 @@
color: var(--chatroom-head-color); color: var(--chatroom-head-color);
} }
} }
.chatbox-title__text--bookmarked {
margin-left: 0.5em;
color: var(--chatroom-head-color);
}
} }
.chatbox-title__buttons { .chatbox-title__buttons {
......
...@@ -8,6 +8,7 @@ import xss from "xss/dist/xss"; ...@@ -8,6 +8,7 @@ import xss from "xss/dist/xss";
const u = converse.env.utils; const u = converse.env.utils;
const i18n_hide_topic = __('Hide the groupchat topic'); const i18n_hide_topic = __('Hide the groupchat topic');
const i18n_bookmarked = __('This groupchat is bookmarked');
const tpl_standalone_btns = (o) => o.standalone_btns.reverse().map(b => until(b, '')); const tpl_standalone_btns = (o) => o.standalone_btns.reverse().map(b => until(b, ''));
...@@ -20,7 +21,7 @@ export default (o) => { ...@@ -20,7 +21,7 @@ export default (o) => {
<div class="chatbox-title ${ show_subject ? '' : "chatbox-title--no-desc"}"> <div class="chatbox-title ${ show_subject ? '' : "chatbox-title--no-desc"}">
${ (o._converse.standalone) ? html`<div class="chatbox-navback"><i class="fa fa-arrow-left"></i></div>` : '' } ${ (o._converse.standalone) ? html`<div class="chatbox-navback"><i class="fa fa-arrow-left"></i></div>` : '' }
<div class="chatbox-title__text" title="${ (o._converse.locked_muc_domain !== 'hidden') ? o.jid : '' }">${ o.title } <div class="chatbox-title__text" title="${ (o._converse.locked_muc_domain !== 'hidden') ? o.jid : '' }">${ o.title }
${ (o.bookmarked) ? html`<i class="fa fa-bookmark"></i>` : '' } ${ (o.bookmarked) ? html`<i class="fa fa-bookmark chatbox-title__text--bookmarked" title="${i18n_bookmarked}"></i>` : '' }
</div> </div>
<div class="chatbox-title__buttons row no-gutters"> <div class="chatbox-title__buttons row no-gutters">
${ o.standalone_btns.length ? tpl_standalone_btns(o) : '' } ${ o.standalone_btns.length ? tpl_standalone_btns(o) : '' }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment