From 2f7f4e73d9490c4fb524a03ef78506ed20a68011 Mon Sep 17 00:00:00 2001 From: Saophalkun Ponlu Date: Tue, 5 Sep 2017 15:08:05 +1200 Subject: [PATCH] Fix toolbar button margin and spacing --- src/Forms/GridField/GridFieldExportButton.php | 2 +- src/Forms/GridField/GridFieldImportButton.php | 2 +- src/Forms/GridField/GridFieldPrintButton.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Forms/GridField/GridFieldExportButton.php b/src/Forms/GridField/GridFieldExportButton.php index 185bc1f9b..5254070e3 100644 --- a/src/Forms/GridField/GridFieldExportButton.php +++ b/src/Forms/GridField/GridFieldExportButton.php @@ -66,7 +66,7 @@ class GridFieldExportButton implements GridField_HTMLProvider, GridField_ActionP $button->addExtraClass('btn btn-secondary no-ajax font-icon-down-circled action_export'); $button->setForm($gridField->getForm()); return array( - $this->targetFragment => '

' . $button->Field() . '

', + $this->targetFragment => $button->Field() ); } diff --git a/src/Forms/GridField/GridFieldImportButton.php b/src/Forms/GridField/GridFieldImportButton.php index 042b40fde..483014f9e 100644 --- a/src/Forms/GridField/GridFieldImportButton.php +++ b/src/Forms/GridField/GridFieldImportButton.php @@ -90,7 +90,7 @@ class GridFieldImportButton implements GridField_HTMLProvider } return array( - $this->targetFragment => '

'. $button->Field() . '

' + $this->targetFragment => $button->Field() ); } diff --git a/src/Forms/GridField/GridFieldPrintButton.php b/src/Forms/GridField/GridFieldPrintButton.php index acc18649b..2e29a21e7 100644 --- a/src/Forms/GridField/GridFieldPrintButton.php +++ b/src/Forms/GridField/GridFieldPrintButton.php @@ -71,7 +71,7 @@ class GridFieldPrintButton implements GridField_HTMLProvider, GridField_ActionPr $button->addExtraClass('font-icon-print btn btn-secondary'); return array( - $this->targetFragment => '

' . $button->Field() . '

', + $this->targetFragment => $button->Field(), ); }