Skip to content

Commit 7f20bdd

Browse files
committed
[BUGFIX] Prevent useless horizontal scrolling of the Crowdin toolbar menu
1 parent c8b0a9f commit 7f20bdd

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Classes/Backend/ToolbarItems/CrowdinToolbarItem.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,12 @@ protected function createToggleSwitch(string $name, bool $enabled): string
139139

140140
$GLOBALS['TYPO3_CONF_VARS']['BE']['debug'] = $backupDebug;
141141

142-
return $result['html'];
142+
// We need to get rid of a "form-wizards-item-element" class that is useless and
143+
// breaks or hand-crafted layout by enforcing a 120px minimum width (backend.css)
144+
// for the toggle usually part of a TCA form
145+
$checkboxHtml = str_replace('<div class="form-wizards-item-element">', '<div>', $result['html']);
146+
147+
return $checkboxHtml;
143148
}
144149

145150
protected function getExtensionsCompatibleWithCrowdin(): array

0 commit comments

Comments
 (0)