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);