Browse Source

Merge pull request #2994

Chiitoo (1):
      Chatlog: Adjust whitespace behaviour/handling.
pull/3054/merge
sudden6 9 years ago
parent
commit
0f0113e72f
No known key found for this signature in database
GPG Key ID: 279509B499E032B9
  1. 2
      src/chatlog/chatmessage.cpp
  2. 14
      ui/chatArea/innerStyle.css

2
src/chatlog/chatmessage.cpp

@ -306,5 +306,5 @@ QString ChatMessage::detectQuotes(const QString& str, MessageType type) @@ -306,5 +306,5 @@ QString ChatMessage::detectQuotes(const QString& str, MessageType type)
QString ChatMessage::wrapDiv(const QString &str, const QString &div)
{
return QString("<div class=%1>%2</div>").arg(div, str);
return QString("<p class=%1>%2</p>").arg(div, /*QChar(0x200E) + */QString(str));
}

14
ui/chatArea/innerStyle.css

@ -1,14 +1,18 @@ @@ -1,14 +1,18 @@
div.msg {
p {
white-space: pre-wrap;
}
p.msg {
color: @black;
font: @big;
}
div.action {
p.action {
color: #1818FF;
font: @big;
}
div.typing {
p.typing {
color: @mediumGreyLight;
font: @big;
}
@ -17,7 +21,7 @@ span.quote { @@ -17,7 +21,7 @@ span.quote {
color: #279419;
}
div.alert {
p.alert {
margin-left: 0px;
margin-right: 0px;
color: @black;
@ -25,7 +29,7 @@ div.alert { @@ -25,7 +29,7 @@ div.alert {
font: @big;
}
div.alert_name {
p.alert_name {
color: @black;
background-color: @orange;
font: @bigBold;

Loading…
Cancel
Save