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 {
|
||||
renderMessageBody(t, vm) {
|
||||
return t.p({
|
||||
className: "Timeline_messageBody",
|
||||
statusMessage: vm => vm.shape === "message-status"
|
||||
className: {
|
||||
"Timeline_messageBody": true,
|
||||
statusMessage: vm => vm.shape === "message-status",
|
||||
},
|
||||
}, [
|
||||
t.mapView(vm => vm.body, body => new BodyView(body)),
|
||||
t.time({className: {hidden: !vm.date}}, vm.date + " " + vm.time)
|
||||
|
|
Reference in a new issue