Skip to content

Commit

Permalink
Display whitespace properly
Browse files Browse the repository at this point in the history
Fixes alignment in many server's motd as well as in-channel ASCII art
  • Loading branch information
maxpoulin64 committed Apr 2, 2016
1 parent 9d59bd5 commit 6a6a4b7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
7 changes: 7 additions & 0 deletions client/css/style.css
Expand Up @@ -760,6 +760,13 @@ button,
color: #999;
}

#chat .msg.motd .text,
#chat .msg.message .text,
#chat .msg.action .text,
#chat .msg.notice .text {
white-space: pre-wrap;
}

#chat.hide-join .join,
#chat.hide-mode .mode,
#chat.hide-motd .motd,
Expand Down
11 changes: 6 additions & 5 deletions client/views/msg.tpl
Expand Up @@ -7,16 +7,17 @@
<a href="#" class="user" style="color: #{{stringcolor from}}" data-name="{{from}}">{{mode}}{{from}}</a>
{{/if}}
</span>
<span class="text">
{{#equal type "toggle"}}
{{#equal type "toggle"}}
<span class="text">
<div class="force-newline">
<button id="toggle-{{id}}" class="toggle-button">···</button>
</div>
{{#if toggle}}
{{partial "toggle"}}
{{/if}}
{{else}}
{{{parse text}}}
{{/equal}}
</span>
{{else}}
<span class="text">{{{parse text}}}</span>
{{/equal}}
</span>
</div>

0 comments on commit 6a6a4b7

Please sign in to comment.