diff --git a/src/Bundle/Resources/contao/dca/tl_leaflet_layer.php b/src/Bundle/Resources/contao/dca/tl_leaflet_layer.php index db783b2..41afc99 100644 --- a/src/Bundle/Resources/contao/dca/tl_leaflet_layer.php +++ b/src/Bundle/Resources/contao/dca/tl_leaflet_layer.php @@ -73,6 +73,11 @@ $GLOBALS['TL_DCA']['tl_leaflet_layer'] = [ 'class' => 'header_edit_all', 'attributes' => 'onclick="Backend.getScrollOffset();"', ], + 'toggleNodes' => [ + 'href' => 'ptg=all', + 'class' => 'header_toggle', + 'showOnSelect' => true, + ], ], 'operations' => [ 'markers' => [ diff --git a/src/Bundle/Resources/public/css/backend.css b/src/Bundle/Resources/public/css/backend.css index 09d7686..021e2d1 100644 --- a/src/Bundle/Resources/public/css/backend.css +++ b/src/Bundle/Resources/public/css/backend.css @@ -23,6 +23,10 @@ padding-left: 20px !important; } +.tl_listing .tl_left { + overflow: unset; +} + .long .tl_text_2 { width: 325px; } diff --git a/src/Listener/Dca/FrontendIntegrationListener.php b/src/Listener/Dca/FrontendIntegrationListener.php index 1fe9e92..99709ce 100644 --- a/src/Listener/Dca/FrontendIntegrationListener.php +++ b/src/Listener/Dca/FrontendIntegrationListener.php @@ -103,7 +103,7 @@ final class FrontendIntegrationListener ) ), Image::getHtml( - 'alias.gif', + 'alias.svg', $this->translator->trans('editalias.0', [$dataContainer->value], 'contao_tl_content'), 'style="vertical-align:top"' ) diff --git a/src/Listener/Dca/LayerDcaListener.php b/src/Listener/Dca/LayerDcaListener.php index 02f1af1..bfeaa69 100644 --- a/src/Listener/Dca/LayerDcaListener.php +++ b/src/Listener/Dca/LayerDcaListener.php @@ -197,7 +197,7 @@ class LayerDcaListener extends AbstractListener if (!empty($this->layers[$row['type']]['icon'])) { $src = $this->layers[$row['type']]['icon']; } else { - $src = 'iconPLAIN.gif'; + $src = 'iconPLAIN.svg'; } $activeIcon = $src; @@ -275,12 +275,12 @@ class LayerDcaListener extends AbstractListener $pasteAfterUrl, StringUtil::specialchars($this->translator->trans('pasteafter.1', [$row['id']], 'contao_' . $table)), Image::getHtml( - 'pasteafter.gif', + 'pasteafter.svg', $this->translator->trans('pasteafter.1', [$row['id']], 'contao_' . $table) ) ); - if (!empty($this->layers[$row['type']]['children'])) { + if (isset($row['type']) && !empty($this->layers[$row['type']]['children'])) { $pasteIntoUrl = $this->backendAdapter->addToUrl( sprintf( 'act=%s&mode=2&pid=%s%s', @@ -295,12 +295,12 @@ class LayerDcaListener extends AbstractListener $pasteIntoUrl, StringUtil::specialchars($this->translator->trans('pasteinto.1', [$row['id']], 'contao_' . $table)), Image::getHtml( - 'pasteinto.gif', + 'pasteinto.svg', $this->translator->trans('pasteinto.1', [$row['id']], 'contao_' . $table) ) ); } elseif ($row['id'] > 0) { - $buffer .= Image::getHtml('pasteinto_.gif'); + $buffer .= Image::getHtml('pasteinto_.svg'); } return $buffer;