Commit 6aa1e97f authored by JC Brand's avatar JC Brand

Extend the mockup and fixed two CSS bugs.

Test for very long words in chat messages (must be wrapped) and very long names
in chatroom participants list.

Also show chat-info and chat-event messages (could probably be merged into one
class/style).
parent 7fcec776
...@@ -115,6 +115,7 @@ span.spinner.hor_centered { ...@@ -115,6 +115,7 @@ span.spinner.hor_centered {
background-color: white; background-color: white;
overflow: auto; overflow: auto;
border-left: 1px solid #AAA; border-left: 1px solid #AAA;
max-width: 99px;
} }
.participants ul.participant-list li { .participants ul.participant-list li {
...@@ -190,6 +191,10 @@ ul.participant-list li.moderator { ...@@ -190,6 +191,10 @@ ul.participant-list li.moderator {
padding-right: 3px; padding-right: 3px;
} }
.chat-message-content {
word-wrap: break-word;
}
.chat-message-them { .chat-message-them {
color: #F62817; color: #F62817;
} }
......
...@@ -200,18 +200,25 @@ ...@@ -200,18 +200,25 @@
<p></p> <p></p>
</div> </div>
<div class="chat-content"> <div class="chat-content">
<div class="chat-info"><strong>/help</strong>:Show this menu</div>
<div class="chat-info"><strong>/me</strong>:Write in the third person</div>
<div class="chat-message"> <div class="chat-message">
<span class="chat-message-me">19:39 me:&nbsp;</span> <span class="chat-message-me">09:35 me:&nbsp;</span>
<span class="chat-message-content">Hello world</span> <span class="chat-message-content">Hello world</span>
</div> </div>
<div class="chat-message "> <div class="chat-message ">
<span class="chat-message-them">15:45 Benedict-John:&nbsp;</span> <span class="chat-message-them">19:25 Benedict-John:&nbsp;</span>
<span class="chat-message-content">Dagsê</span> <span class="chat-message-content">Dagsê</span>
</div> </div>
<div class="chat-message"> <div class="chat-message">
<span class="chat-message-me">19:39 me:&nbsp;</span> <span class="chat-message-me">19:39 me:&nbsp;</span>
<span class="chat-message-content">This is a relatively long message to check that wrapping works as expected.</span> <span class="chat-message-content">This is a relatively long message to check that wrapping works as expected.</span>
</div> </div>
<div class="chat-message">
<span class="chat-message-me">19:42 me:&nbsp;</span>
<span class="chat-message-content">Supercalifragilisticexpialidociousstillnotlongenough</span>
</div>
<div class="chat-event">JC Brand is busy</div>
</div> </div>
<form class="sendXMPPMessage" action="" method="post"> <form class="sendXMPPMessage" action="" method="post">
<textarea type="text" class="chat-textarea" placeholder="Personal message"></textarea> <textarea type="text" class="chat-textarea" placeholder="Personal message"></textarea>
...@@ -235,10 +242,19 @@ ...@@ -235,10 +242,19 @@
<span class="chat-message-content">leia: hi :)</span> <span class="chat-message-content">leia: hi :)</span>
</div> </div>
<div class="chat-message "> <div class="chat-message ">
<span class="chat-message-me">19:40 me:&nbsp;</span> <span class="chat-message-room">19:40 leia:&nbsp;</span>
<span class="chat-message-content">
I'll be gone for a while, will be back in about an hour</span>
</div>
<div class="chat-message ">
<span class="chat-message-room">19:40 Obi-wan Kenobi, Jedi Master:&nbsp;</span>
<span class="chat-message-content"> <span class="chat-message-content">
I'll be gone for a while, will be back in about an hour</span> I'll be gone for a while, will be back in about an hour</span>
</div> </div>
<div class="chat-message">
<span class="chat-message-me">19:42 me:&nbsp;</span>
<span class="chat-message-content">Supercalifragilisticexpialidociousstillnotlongenough</span>
</div>
</div> </div>
<form class="sendXMPPMessage" action="" method="post"> <form class="sendXMPPMessage" action="" method="post">
<textarea type="text" class="chat-textarea" placeholder="Message"></textarea> <textarea type="text" class="chat-textarea" placeholder="Message"></textarea>
...@@ -246,7 +262,8 @@ ...@@ -246,7 +262,8 @@
</div> </div>
<div class="participants"> <div class="participants">
<ul class="participant-list"> <ul class="participant-list">
<li class="participant" title="This user can send messages in this room">jabberthehut</li> <li class="participant" title="This user can send messages in this room">Obi-wan Kenobi, Jedi Master</li>
<li class="participant" title="This user can send messages in this room">jabber the hut</li>
<li class="participant" title="This user can send messages in this room">leia</li> <li class="participant" title="This user can send messages in this room">leia</li>
<li class="moderator" title="This user is a moderator">luke</li> <li class="moderator" title="This user is a moderator">luke</li>
</ul> </ul>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment