From f2dadeed07d4c1fbe63547e1976572dd77029aab Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Tue, 6 Aug 2013 14:25:43 +0200 Subject: [PATCH] Fixed word-wrap issues --- .../WordwrapModifierTemplatePlugin.class.php | 35 ------------------- wcfsetup/install/files/style/global.less | 1 + 2 files changed, 1 insertion(+), 35 deletions(-) delete mode 100644 wcfsetup/install/files/lib/system/template/plugin/WordwrapModifierTemplatePlugin.class.php diff --git a/wcfsetup/install/files/lib/system/template/plugin/WordwrapModifierTemplatePlugin.class.php b/wcfsetup/install/files/lib/system/template/plugin/WordwrapModifierTemplatePlugin.class.php deleted file mode 100644 index 9c446937c4..0000000000 --- a/wcfsetup/install/files/lib/system/template/plugin/WordwrapModifierTemplatePlugin.class.php +++ /dev/null @@ -1,35 +0,0 @@ - - * @package com.woltlab.wcf - * @subpackage system.template.plugin - * @category Community Framework - */ -class WordwrapModifierTemplatePlugin implements IModifierTemplatePlugin { - /** - * @see wcf\system\template\IModifierTemplatePlugin::execute() - */ - public function execute($tagArgs, TemplateEngine $tplObj) { - // default values - $width = 50; - $break = ' '; - - // get values - $string = $tagArgs[0]; - if (isset($tagArgs[1])) $width = intval($tagArgs[1]); - if (isset($tagArgs[2])) $break = $tagArgs[2]; - - return StringUtil::wordwrap($string, $width, $break); - } -} diff --git a/wcfsetup/install/files/style/global.less b/wcfsetup/install/files/style/global.less index cf34976991..38c21ba00a 100644 --- a/wcfsetup/install/files/style/global.less +++ b/wcfsetup/install/files/style/global.less @@ -5,6 +5,7 @@ body { font-family: @wcfBaseFontFamily; font-size: @wcfBaseFontSize; line-height: @wcfBaseLineHeight; + word-break: break-all; } small { -- 2.20.1