This is an automated email from the git hooks/post-receive script. New commit to branch develop in repository pollen. See https://gitlab.nuiton.org/chorem/pollen.git commit c102f0a12ab6f69b4d2e08fd3fa8341b50940da4 Author: Sylvain Bavencoff <bavencoff@codelutin.com> Date: Thu Jan 25 12:28:50 2018 +0100 fix #190 --- .../src/main/web/tag/components/LetterAvatar.tag.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pollen-ui-riot-js/src/main/web/tag/components/LetterAvatar.tag.html b/pollen-ui-riot-js/src/main/web/tag/components/LetterAvatar.tag.html index cdf93c1c..046b59af 100644 --- a/pollen-ui-riot-js/src/main/web/tag/components/LetterAvatar.tag.html +++ b/pollen-ui-riot-js/src/main/web/tag/components/LetterAvatar.tag.html @@ -8,12 +8,12 @@ it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - + You should have received a copy of the GNU Affero General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. #L% @@ -28,7 +28,7 @@ <script type="es6"> this.redraw = () => { - if (this.opts.name.trim().length > 0) { + if (this.opts.name && this.opts.name.trim().length > 0) { let nameSplit = this.opts.name.split(); this.avatarLetter = nameSplit[0][0].toUpperCase(); let secondLetter = null; @@ -43,7 +43,7 @@ this.backgroundColor = "hsl(" + hue + ", 68%, 48%)"; } else { this.avatarLetter = "?"; - this.backgroundColor = "#000000"; + this.backgroundColor = "#AAAAAA"; } }; -- To stop receiving notification emails like this one, please contact chorem.org SCM administrator <admin+scm@chorem.org>.