Skip to content

Commit 8453f07

Browse files
Tristramgmuxator
authored andcommitted
Chat bubble: by default hide in CSS
The current behaviour is to show the chat bubble and hide if chat is disabled. Because of this, the bubble appears wrongfully for a short time. With this PR, by default it is hidden and displayed only if chat is enabled. Fixes: ether#3088
1 parent 705cc6f commit 8453f07

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/static/css/pad.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -643,6 +643,7 @@ table#otheruserstable {
643643
border-top-right-radius: 5px;
644644
background-color: #fff;
645645
cursor: pointer;
646+
display: none;
646647
}
647648
#chaticon a {
648649
text-decoration: none

src/static/js/pad.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ function randomString()
7474
var getParameters = [
7575
{ name: "noColors", checkVal: "true", callback: function(val) { settings.noColors = true; $('#clearAuthorship').hide(); } },
7676
{ name: "showControls", checkVal: "false", callback: function(val) { $('#editbar').addClass('hideControlsEditbar'); $('#editorcontainer').addClass('hideControlsEditor'); } },
77-
{ name: "showChat", checkVal: "false", callback: function(val) { $('#chaticon').hide(); } },
77+
{ name: "showChat", checkVal: "true", callback: function(val) { $('#chaticon').show(); } },
7878
{ name: "showLineNumbers", checkVal: "false", callback: function(val) { settings.LineNumbersDisabled = true; } },
7979
{ name: "useMonospaceFont", checkVal: "true", callback: function(val) { settings.useMonospaceFontGlobal = true; } },
8080
// If the username is set as a parameter we should set a global value that we can call once we have initiated the pad.

0 commit comments

Comments
 (0)