From a108be8517e2616b173f1d05c7daeb247f3f01e2 Mon Sep 17 00:00:00 2001 From: Pierre Goiffon Date: Wed, 18 Dec 2019 09:56:27 +0100 Subject: [PATCH] =?UTF-8?q?N=C2=B0330=20Fix=20first=20column=20not=20cente?= =?UTF-8?q?red=20when=20creating=20attachment=20on=20new=20ticket?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- css/light-grey.scss | 15 +++++++++++---- .../renderers.itop-attachments.php | 7 ------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/css/light-grey.scss b/css/light-grey.scss index 2a7e24b7f..e1d8380d4 100644 --- a/css/light-grey.scss +++ b/css/light-grey.scss @@ -3851,7 +3851,14 @@ input:checked + .slider:before { .pull-left { float: left; } -table.attachmentsList tr>td:nth-child(3) { - text-align: right; - padding-right: 0.5em; -} \ No newline at end of file +table.attachmentsList { + &>tbody{ + &>tr>td:first-child { + text-align: center; + } + &>tr>td:nth-child(3) { + text-align: right; + padding-right: 0.5em; + } + } +} diff --git a/datamodels/2.x/itop-attachments/renderers.itop-attachments.php b/datamodels/2.x/itop-attachments/renderers.itop-attachments.php index 2dd16e086..45a890cfb 100644 --- a/datamodels/2.x/itop-attachments/renderers.itop-attachments.php +++ b/datamodels/2.x/itop-attachments/renderers.itop-attachments.php @@ -385,13 +385,6 @@ JS { $this->oPage->add_script($this->GetDeleteAttachmentJs()); } - $this->oPage->add_style( - <<tbody>tr>td:first-child { - text-align: center; -} -CSS - ); $bIsEven = false; $aAttachmentsDate = AttachmentsHelper::GetAttachmentsDateAddedFromDb($this->sObjClass, $this->iObjKey);