Update messenger UI
This commit is contained in:
parent
fd889ba60d
commit
673dc22159
@ -308,6 +308,7 @@
|
|||||||
}
|
}
|
||||||
flex: 1;
|
flex: 1;
|
||||||
min-width: 70%;
|
min-width: 70%;
|
||||||
|
position: relative;
|
||||||
}
|
}
|
||||||
.cp-app-contacts-date {
|
.cp-app-contacts-date {
|
||||||
display: none;
|
display: none;
|
||||||
@ -326,6 +327,15 @@
|
|||||||
font-size: 0.8em;
|
font-size: 0.8em;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
color: @color;
|
color: @color;
|
||||||
|
font-weight: bold;
|
||||||
|
position: absolute;
|
||||||
|
right: 0;
|
||||||
|
top: 0;
|
||||||
|
bottom: 0;
|
||||||
|
background: rgba(0,0,0,0.3);
|
||||||
|
border-top-left-radius: 50%;
|
||||||
|
border-bottom-left-radius: 50%;
|
||||||
|
padding: 0 10px;
|
||||||
}
|
}
|
||||||
&:hover {
|
&:hover {
|
||||||
.cp-app-contacts-time {
|
.cp-app-contacts-time {
|
||||||
|
|||||||
@ -137,7 +137,7 @@ define([
|
|||||||
|
|
||||||
$(window).on('resize', onResize);
|
$(window).on('resize', onResize);
|
||||||
|
|
||||||
var m = function (md) {
|
var m = function (md, hour) {
|
||||||
var d = h('div.cp-app-contacts-content');
|
var d = h('div.cp-app-contacts-content');
|
||||||
try {
|
try {
|
||||||
d.innerHTML = Marked(md || '');
|
d.innerHTML = Marked(md || '');
|
||||||
@ -155,6 +155,9 @@ define([
|
|||||||
|
|
||||||
// activate media-tags
|
// activate media-tags
|
||||||
$d.find('media-tag').each(function (i, e) { MediaTag(e); });
|
$d.find('media-tag').each(function (i, e) { MediaTag(e); });
|
||||||
|
|
||||||
|
var time = h('div.cp-app-contacts-time', hour);
|
||||||
|
$d.append(time);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.error(md);
|
console.error(md);
|
||||||
console.error(e);
|
console.error(e);
|
||||||
@ -180,8 +183,7 @@ define([
|
|||||||
h('span.cp-app-contacts-sender-name', name),
|
h('span.cp-app-contacts-sender-name', name),
|
||||||
h('span.cp-app-contacts-sender-time', day)
|
h('span.cp-app-contacts-sender-time', day)
|
||||||
]): undefined,
|
]): undefined,
|
||||||
m(msg.text),
|
m(msg.text, hour),
|
||||||
h('div.cp-app-contacts-time', hour)
|
|
||||||
]);
|
]);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user