forked from mystiq/hydrogen-web
fix status styling for text messages being broken
as binding was put at argument level rather than className level
This commit is contained in:
parent
1bb61d02de
commit
09bf0f3b4e
1 changed files with 4 additions and 2 deletions
|
@ -21,8 +21,10 @@ import {BaseMessageView} from "./BaseMessageView.js";
|
||||||
export class TextMessageView extends BaseMessageView {
|
export class TextMessageView extends BaseMessageView {
|
||||||
renderMessageBody(t, vm) {
|
renderMessageBody(t, vm) {
|
||||||
return t.p({
|
return t.p({
|
||||||
className: "Timeline_messageBody",
|
className: {
|
||||||
statusMessage: vm => vm.shape === "message-status"
|
"Timeline_messageBody": true,
|
||||||
|
statusMessage: vm => vm.shape === "message-status",
|
||||||
|
},
|
||||||
}, [
|
}, [
|
||||||
t.mapView(vm => vm.body, body => new BodyView(body)),
|
t.mapView(vm => vm.body, body => new BodyView(body)),
|
||||||
t.time({className: {hidden: !vm.date}}, vm.date + " " + vm.time)
|
t.time({className: {hidden: !vm.date}}, vm.date + " " + vm.time)
|
||||||
|
|
Loading…
Reference in a new issue