From f94960601ef922372d38b562238e4340decc9393 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20D=C3=BCsterhus?= Date: Sun, 21 Apr 2013 20:32:30 +0200 Subject: [PATCH] Disable wrapping of username in stream --- file/lib/data/message/MessageAction.class.php | 2 +- file/style/be.bastelstu.wcf.chat.less | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/file/lib/data/message/MessageAction.class.php b/file/lib/data/message/MessageAction.class.php index dfae9fa..dff95f8 100644 --- a/file/lib/data/message/MessageAction.class.php +++ b/file/lib/data/message/MessageAction.class.php @@ -63,7 +63,7 @@ public function validateSend() { $this->parameters['enableHTML'] = false; // validate text - if (StringUtil::length($this->parameters['text']) > CHAT_MAX_LENGTH) throw new UserInputException('text', 'tooLong'); + if (\wcf\util\StringUtil::length($this->parameters['text']) > CHAT_MAX_LENGTH) throw new UserInputException('text', 'tooLong'); // search for disallowed bbcodes $disallowedBBCodes = \wcf\system\bbcode\BBCodeParser::getInstance()->validateBBCodes($this->parameters['text'], explode(',', WCF::getSession()->getPermission('user.chat.allowedBBCodes'))); diff --git a/file/style/be.bastelstu.wcf.chat.less b/file/style/be.bastelstu.wcf.chat.less index bbc310e..85ec593 100644 --- a/file/style/be.bastelstu.wcf.chat.less +++ b/file/style/be.bastelstu.wcf.chat.less @@ -64,6 +64,7 @@ text-align: right; min-width: 100px; padding: 0px 5px; + white-space: nowrap; } }