From 8e46026f6dc09aeaebd5d8823f4b61f5a40d0339 Mon Sep 17 00:00:00 2001 From: Michael Telgkamp <michael.telgkamp@mindscreen.de> Date: Wed, 12 Jun 2024 21:26:27 +0200 Subject: [PATCH] [BUGFIX] Remove inline style for margin and calculation of it MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The rootpages in the site configuration do not have intendation any longer. The computation of the margin value and the unused inline style are removed. Resolves: #104066 Releases: main, 12.4 Change-Id: Ic75d7e10638b2ee3fb06f42add1a36c180f754e7 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/84635 Tested-by: Jasmina Ließmann <minapokhalo+typo3@gmail.com> Tested-by: core-ci <typo3@b13.com> Reviewed-by: Jasmina Ließmann <minapokhalo+typo3@gmail.com> --- .../Classes/Controller/SiteConfigurationController.php | 4 ---- .../Private/Templates/SiteConfiguration/Overview.html | 4 +--- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/typo3/sysext/backend/Classes/Controller/SiteConfigurationController.php b/typo3/sysext/backend/Classes/Controller/SiteConfigurationController.php index b3b63cf11737..38cb5d518a1d 100644 --- a/typo3/sysext/backend/Classes/Controller/SiteConfigurationController.php +++ b/typo3/sysext/backend/Classes/Controller/SiteConfigurationController.php @@ -746,10 +746,6 @@ class SiteConfigurationController $row['rootline'] = BackendUtility::BEgetRootLine((int)$row['uid']); array_pop($row['rootline']); $row['rootline'] = array_reverse($row['rootline']); - $i = 0; - foreach ($row['rootline'] as &$record) { - $record['margin'] = $i++ * 20; - } $pages[(int)$row['uid']] = $row; } return $pages; diff --git a/typo3/sysext/backend/Resources/Private/Templates/SiteConfiguration/Overview.html b/typo3/sysext/backend/Resources/Private/Templates/SiteConfiguration/Overview.html index 037a79704fc7..244fa9b970d1 100644 --- a/typo3/sysext/backend/Resources/Private/Templates/SiteConfiguration/Overview.html +++ b/typo3/sysext/backend/Resources/Private/Templates/SiteConfiguration/Overview.html @@ -87,9 +87,7 @@ data-contextmenu-table="pages" data-contextmenu-uid="{rootPage.uid}" aria-label="{f:translate(key: 'LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.contextMenu.open')}"> - <span style="margin-left: {rootLinePage.margin}px"> - <core:iconForRecord table="pages" row="{rootPage}" /> - </span> + <core:iconForRecord table="pages" row="{rootPage}" /> </button> </td> <td class="align-top"> -- GitLab