Skip to content

Commit

Permalink
Fix Long name Issue llaske#383
Browse files Browse the repository at this point in the history
This should add space between message and user name
  • Loading branch information
AndreaGon authored and felipebrunetti94 committed Nov 18, 2019
1 parent 83c0154 commit 17a406e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions activities/ChatPrototype.activity/js/activity.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ define(["sugar-web/activity/activity","webL10n","sugar-web/graphics/palette","su
var author = msg.user.name.replace('<','&lt;').replace('>','&gt;');
var colour = msg.user.colorvalue;

var authorElem = '<span style = "color:' + colour.stroke + '">' + author + '</span>';
var authorElem = '<span style = "color:' + colour.stroke + ';width: auto; padding-right: 10px;">' + author + '</span>';

myElem = document.createElement('li');
myElem.class = 'received';
Expand All @@ -103,7 +103,7 @@ define(["sugar-web/activity/activity","webL10n","sugar-web/graphics/palette","su
var author = msg.user.name.replace('<','&lt;').replace('>','&gt;');
var colour = msg.user.colorvalue;

var authorElem = '<span style = "color:' + colour.stroke + '">' + author + '</span>';
var authorElem = '<span style = "color:' + colour.stroke + ';width: auto; padding-right: 10px;">' + author + '</span>';
myElem = document.createElement('li');
myElem.class = 'received';
myElem.style.background = colour.fill;
Expand Down

0 comments on commit 17a406e

Please sign in to comment.