Fix images being too wide in HTML fields and caselogs in the end-users portal

Regression introduced in a previous version of iTop.
This commit is contained in:
Molkobain
2020-02-17 16:29:21 +01:00
parent a127ca9ca0
commit dba6e8ce1a
2 changed files with 5 additions and 5 deletions

View File

@@ -1116,6 +1116,10 @@ table .group-actions .item-action-wrapper .panel-body > p:last-child{
color: $brand-primary;
font-size: 0.9em;
}
.form_field .form-control-static img{
max-width: 100% !important;
height: initial !important;
}
/* ExternalKey */
.selectobject .input-group-addon{
cursor: pointer;
@@ -1345,11 +1349,6 @@ table .group-actions .item-action-wrapper .panel-body > p:last-child{
margin-left: 10px;
}
.form_field .form-control-static img{
max-width: 100% !important;
height: initial !important;
}
.form_buttons{
padding-top: 20px;
text-align: center;

View File

@@ -39,6 +39,7 @@ class BsFieldRenderer extends FieldRenderer
public function Render()
{
$oOutput = parent::Render();
$oOutput->AddCssClass('form_field');
$oOutput->AddCssClass('form_field_'.$this->oField->GetDisplayMode());
return $oOutput;