From 367421d40a20778ac4f2ca26919f177f6a730f21 Mon Sep 17 00:00:00 2001 From: lilia Date: Fri, 13 Feb 2015 16:21:39 -0800 Subject: [PATCH] Style end session messages Also add a missing call to render() --- js/views/message_view.js | 2 +- stylesheets/_conversation.scss | 6 ++++++ stylesheets/manifest.css | 5 +++++ 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/js/views/message_view.js b/js/views/message_view.js index afa67416379b..ffd54da1d1c6 100644 --- a/js/views/message_view.js +++ b/js/views/message_view.js @@ -45,7 +45,7 @@ model: groupUpdate }).render(); } else if (this.model.get('flags') === textsecure.protobuf.PushMessageContent.Flags.END_SESSION) { - this.end_session_view = new Whisper.EndSessionView(); + this.end_session_view = new Whisper.EndSessionView().render(); } else { this.template = $('#message').html(); } diff --git a/stylesheets/_conversation.scss b/stylesheets/_conversation.scss index 482b955df1ad..0373e3c4151c 100644 --- a/stylesheets/_conversation.scss +++ b/stylesheets/_conversation.scss @@ -216,3 +216,9 @@ button { z-index: 5; } } + +.end-session { + font: small; + font-style: italic; + opacity: 0.8; +} diff --git a/stylesheets/manifest.css b/stylesheets/manifest.css index aded3f29170e..11196c6f7a0a 100644 --- a/stylesheets/manifest.css +++ b/stylesheets/manifest.css @@ -398,3 +398,8 @@ button { border: 0; outline: 0; z-index: 5; } + +.end-session { + font: small; + font-style: italic; + opacity: 0.8; }