Compare commits

...

2 Commits

Author SHA1 Message Date
Sharon Kennedy
c592253707 1.1.4 2020-05-26 09:22:40 -04:00
Sharon Kennedy
ebb06b3377 add namespace to avoid css collistions 2020-05-26 09:22:08 -04:00
4 changed files with 94 additions and 89 deletions

View File

@@ -1,6 +1,6 @@
{ {
"name": "safesupport-chatbox", "name": "safesupport-chatbox",
"version": "1.1.3", "version": "1.1.4",
"description": "A secure and private embeddable chatbox that connects to Riot", "description": "A secure and private embeddable chatbox that connects to Riot",
"main": "dist/chatbox.js", "main": "dist/chatbox.js",
"scripts": { "scripts": {

View File

@@ -99,6 +99,7 @@
width: 400px; width: 400px;
max-width: calc(100vw - 10px); max-width: calc(100vw - 10px);
border-bottom: none; border-bottom: none;
margin: 0;
animation-duration: 0.2s; animation-duration: 0.2s;
animation-fill-mode: forwards; animation-fill-mode: forwards;

View File

@@ -599,6 +599,7 @@ class ChatBox extends React.Component {
const inputLabel = 'Send a message...' const inputLabel = 'Send a message...'
return ( return (
<div id="safesupport">
<div className="docked-widget" role="complementary"> <div className="docked-widget" role="complementary">
<Transition in={opened} timeout={250} onExited={this.handleWidgetExit} onEntered={this.handleWidgetEnter}> <Transition in={opened} timeout={250} onExited={this.handleWidgetExit} onEntered={this.handleWidgetEnter}>
{(status) => { {(status) => {
@@ -697,6 +698,7 @@ class ChatBox extends React.Component {
{showDock && !roomId && <Dock handleToggleOpen={this.handleToggleOpen} />} {showDock && !roomId && <Dock handleToggleOpen={this.handleToggleOpen} />}
{showDock && roomId && <Header handleToggleOpen={this.handleToggleOpen} opened={opened} handleExitChat={this.handleExitChat} />} {showDock && roomId && <Header handleToggleOpen={this.handleToggleOpen} opened={opened} handleExitChat={this.handleExitChat} />}
</div> </div>
</div>
); );
} }
}; };

View File

@@ -1,4 +1,6 @@
@import "variables"; #safesupport {
@import "loader"; @import "variables";
@import "chat"; @import "loader";
@import "dark_mode"; @import "chat";
@import "dark_mode";
}