merge devel
This commit is contained in:
+6
-6
@@ -1080,15 +1080,15 @@ i.search {
|
|||||||
}
|
}
|
||||||
|
|
||||||
img.channel {
|
img.channel {
|
||||||
width: 1rem;
|
width: 1.25rem;
|
||||||
height: 1rem;
|
height: 1.25rem;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
margin-left: 0.3rem;
|
margin-left: 0.3rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.large img.channel {
|
.large img.channel {
|
||||||
width: 1.35rem;
|
width: 1.45rem;
|
||||||
height: 1.35rem;
|
height: 1.45rem;
|
||||||
margin-left: 0.5rem;
|
margin-left: 0.5rem;
|
||||||
margin-bottom: 0.15rem;
|
margin-bottom: 0.15rem;
|
||||||
}
|
}
|
||||||
@@ -2222,8 +2222,8 @@ ul.tabbar li.active > a {
|
|||||||
|
|
||||||
.material-icons.as-badge {
|
.material-icons.as-badge {
|
||||||
padding-left: 0.2rem;
|
padding-left: 0.2rem;
|
||||||
font-size: 1.25rem;
|
font-size: 1.15rem;
|
||||||
color: #bbb;
|
color: #aaa;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Badge with a label, like [you], [muted], etc */
|
/* Badge with a label, like [you], [muted], etc */
|
||||||
|
|||||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Binary file not shown.
|
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.4 KiB |
File diff suppressed because one or more lines are too long
+1
-1
@@ -1118,7 +1118,7 @@
|
|||||||
"obsolete": false
|
"obsolete": false
|
||||||
},
|
},
|
||||||
"tags_not_found": {
|
"tags_not_found": {
|
||||||
"translation": "Тегов нет. Добавьте",
|
"translation": "Тегов нет. Добавьте.",
|
||||||
"defaultMessage": "No tags defined. Add some.",
|
"defaultMessage": "No tags defined. Add some.",
|
||||||
"description": "",
|
"description": "",
|
||||||
"missing": false,
|
"missing": false,
|
||||||
|
|||||||
@@ -60,6 +60,7 @@ class ContactList extends React.Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const isChannel = Tinode.isChannelTopicName(key);
|
const isChannel = Tinode.isChannelTopicName(key);
|
||||||
|
const isGroup = !isChannel && Tinode.isGroupTopicName(key);
|
||||||
const selected = showCheckmark ?
|
const selected = showCheckmark ?
|
||||||
(this.props.topicSelected.indexOf(key) > -1) :
|
(this.props.topicSelected.indexOf(key) > -1) :
|
||||||
(this.props.topicSelected === key);
|
(this.props.topicSelected === key);
|
||||||
@@ -112,6 +113,7 @@ class ContactList extends React.Component {
|
|||||||
selected={selected}
|
selected={selected}
|
||||||
showOnline={this.props.showOnline && !isChannel}
|
showOnline={this.props.showOnline && !isChannel}
|
||||||
isChannel={isChannel}
|
isChannel={isChannel}
|
||||||
|
isGroup={isGroup}
|
||||||
showContextMenu={this.props.showContextMenu}
|
showContextMenu={this.props.showContextMenu}
|
||||||
isVerified={c.trusted && c.trusted.verified}
|
isVerified={c.trusted && c.trusted.verified}
|
||||||
isStaff={c.trusted && c.trusted.staff}
|
isStaff={c.trusted && c.trusted.staff}
|
||||||
|
|||||||
@@ -105,6 +105,7 @@ class Contact extends React.Component {
|
|||||||
</div>
|
</div>
|
||||||
<div className="text-box">
|
<div className="text-box">
|
||||||
<div><span className={titleClass}>{title}</span>
|
<div><span className={titleClass}>{title}</span>
|
||||||
|
{this.props.isGroup ? <i className="material-icons as-badge">group</i> : null}
|
||||||
{this.props.isChannel ? <img src="/img/channel.png" className="channel" alt="channel" /> : null}
|
{this.props.isChannel ? <img src="/img/channel.png" className="channel" alt="channel" /> : null}
|
||||||
<ContactBadges badges={icon_badges} />
|
<ContactBadges badges={icon_badges} />
|
||||||
{!this.props.deleted ? <UnreadBadge count={this.props.unread} /> : null}
|
{!this.props.deleted ? <UnreadBadge count={this.props.unread} /> : null}
|
||||||
|
|||||||
+1
-1
File diff suppressed because one or more lines are too long
+5
-1
@@ -11779,6 +11779,7 @@ class ContactList extends (react__WEBPACK_IMPORTED_MODULE_0___default().Componen
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
const isChannel = tinode_sdk__WEBPACK_IMPORTED_MODULE_2__.Tinode.isChannelTopicName(key);
|
const isChannel = tinode_sdk__WEBPACK_IMPORTED_MODULE_2__.Tinode.isChannelTopicName(key);
|
||||||
|
const isGroup = !isChannel && tinode_sdk__WEBPACK_IMPORTED_MODULE_2__.Tinode.isGroupTopicName(key);
|
||||||
const selected = showCheckmark ? this.props.topicSelected.indexOf(key) > -1 : this.props.topicSelected === key;
|
const selected = showCheckmark ? this.props.topicSelected.indexOf(key) > -1 : this.props.topicSelected === key;
|
||||||
const badges = [];
|
const badges = [];
|
||||||
if (this.props.showMode) {
|
if (this.props.showMode) {
|
||||||
@@ -11829,6 +11830,7 @@ class ContactList extends (react__WEBPACK_IMPORTED_MODULE_0___default().Componen
|
|||||||
selected: selected,
|
selected: selected,
|
||||||
showOnline: this.props.showOnline && !isChannel,
|
showOnline: this.props.showOnline && !isChannel,
|
||||||
isChannel: isChannel,
|
isChannel: isChannel,
|
||||||
|
isGroup: isGroup,
|
||||||
showContextMenu: this.props.showContextMenu,
|
showContextMenu: this.props.showContextMenu,
|
||||||
isVerified: c.trusted && c.trusted.verified,
|
isVerified: c.trusted && c.trusted.verified,
|
||||||
isStaff: c.trusted && c.trusted.staff,
|
isStaff: c.trusted && c.trusted.staff,
|
||||||
@@ -12011,7 +12013,9 @@ class Contact extends (react__WEBPACK_IMPORTED_MODULE_0___default().Component) {
|
|||||||
className: "text-box"
|
className: "text-box"
|
||||||
}, react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", null, react__WEBPACK_IMPORTED_MODULE_0___default().createElement("span", {
|
}, react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", null, react__WEBPACK_IMPORTED_MODULE_0___default().createElement("span", {
|
||||||
className: titleClass
|
className: titleClass
|
||||||
}, title), this.props.isChannel ? react__WEBPACK_IMPORTED_MODULE_0___default().createElement("img", {
|
}, title), this.props.isGroup ? react__WEBPACK_IMPORTED_MODULE_0___default().createElement("i", {
|
||||||
|
className: "material-icons as-badge"
|
||||||
|
}, "group") : null, this.props.isChannel ? react__WEBPACK_IMPORTED_MODULE_0___default().createElement("img", {
|
||||||
src: "/img/channel.png",
|
src: "/img/channel.png",
|
||||||
className: "channel",
|
className: "channel",
|
||||||
alt: "channel"
|
alt: "channel"
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user