mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-04 06:40:44 +01:00
chat controls now hidden instead of taking up space in chat modal
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user