Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 8 additions & 7 deletions disable_chat.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
'use strict';

exports.eejsBlock_styles = (hookName, context, cb) => {
context.content += `<style>
.hide-for-mobile { display:none !important; }
#chaticon, #chatbox { display: none !important; }
const {hideCSS} = require('ep_plugin_helpers');

exports.eejsBlock_styles = hideCSS('.hide-for-mobile, #chaticon, #chatbox', {
// Once chat is hidden the users panel takes over the full popup; without
// these height rules the popup collapses to the (now-empty) chat region.
extra: `
#users { height:100%; }
.popup#users.chatAndUsers > .popup-content { height:100%; }
.popup#users.chatAndUsers { height:100%; }
</style>`;
cb();
};
`,
});
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,8 @@
"repository": {
"type": "git",
"url": "https://github.com/ether/ep_disable_chat"
},
"dependencies": {
"ep_plugin_helpers": "^0.5.0"
}
}
10 changes: 10 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading