chat controls now hidden instead of taking up space in chat modal

v1.18.x
Julian Lam 9 years ago
parent a0a98e64b7
commit 322d4052b0

@ -52,8 +52,8 @@
"nodebb-plugin-spam-be-gone": "0.4.5",
"nodebb-rewards-essentials": "0.0.6",
"nodebb-theme-lavender": "3.0.8",
"nodebb-theme-persona": "4.0.77",
"nodebb-theme-vanilla": "5.0.46",
"nodebb-theme-persona": "4.0.78",
"nodebb-theme-vanilla": "5.0.47",
"nodebb-widget-essentials": "2.0.6",
"nodemailer": "2.0.0",
"nodemailer-sendmail-transport": "1.0.0",

@ -277,6 +277,13 @@ define('chat', ['components', 'taskbar', 'string', 'sounds', 'forum/chats', 'tra
Chats.delete(messageId, data.roomId);
});
chatModal.find('[component="chat/controlsToggle"]').on('click', function() {
var messagesEl = chatModal.find('[component="chat/messages"]');
chatModal.find('[component="chat/controls"]').toggle();
messagesEl.css('height', module.calculateChatListHeight(chatModal));
});
Chats.addSinceHandler(chatModal.attr('roomId'), chatModal.find('.chat-content'), chatModal.find('[data-since]'));
Chats.addRenameHandler(chatModal.attr('roomId'), chatModal.find('[component="chat/room/name"]'));
@ -375,7 +382,7 @@ define('chat', ['components', 'taskbar', 'string', 'sounds', 'forum/chats', 'tra
sinceHeight = modalEl.find('.since-bar').outerHeight(true),
inputGroupHeight = modalEl.find('.input-group').outerHeight();
return totalHeight - padding - contentMargin - sinceHeight - inputGroupHeight;
return totalHeight - padding - contentMargin - inputGroupHeight;
};
module.minimize = function(uuid) {

Loading…
Cancel
Save