SCSS: Refactor .is-code by moving it to helper file and renaming it

This commit is contained in:
Molkobain
2021-05-05 18:29:33 +02:00
parent 6ab6930986
commit 88634bcd92
3 changed files with 11 additions and 10 deletions

View File

@@ -31,7 +31,7 @@ class UIContentBlockUIBlockFactory extends AbstractUIBlockFactory
*/
public static function MakeForCode(string $sCode, string $sId = null)
{
$oCode = new UIContentBlock($sId, ['ibo-code']);
$oCode = new UIContentBlock($sId, ['ibo-is-code']);
$sCode = str_replace("\n", '<br>', $sCode);
$oCode->AddSubBlock(new Html($sCode));